Skip to content

Commit

Permalink
merge changes from 0.6
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@915828 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gdusbabek committed Feb 24, 2010
1 parent 633fd56 commit 85047d0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/cassandra.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@
@REM limitations under the License.

@echo off

SETLOCAL
if "%OS%" == "Windows_NT" setlocal

if NOT DEFINED CASSANDRA_HOME set CASSANDRA_HOME=%CD%
if NOT DEFINED CASSANDRA_CONF set CASSANDRA_CONF=%CASSANDRA_HOME%\conf
if NOT DEFINED CASSANDRA_MAIN set CASSANDRA_MAIN=org.apache.cassandra.thrift.CassandraDaemon
if NOT DEFINED JAVA_HOME goto err

REM ***** JAVA options *****

set JAVA_OPTS=^
-ea^
-Xdebug^
Expand All @@ -45,20 +43,22 @@ set JAVA_OPTS=^

REM ***** CLASSPATH library setting *****

REM Shorten lib path for old platforms
subst P: "%CASSANDRA_HOME%\lib"
P:
set CLASSPATH=P:\
REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH=

for %%i in (*.jar) do call :append %%i
REM For each jar in the CASSANDRA_HOME lib directory call append to build the CLASSPATH variable.
for %%i in (%CASSANDRA_HOME%\lib\*.jar) do call :append %%~fi
REM In developer mode, we need to include the ivy downloaded jars.
for %%i in (%CASSANDRA_HOME%\build\lib\jars\*.jar) do call :append %%~fi
goto okClasspath

:append
set CLASSPATH=%CLASSPATH%;P:\%*
set CLASSPATH=%CLASSPATH%;%1%2
goto :eof

:okClasspath
set CASSANDRA_CLASSPATH=%CASSANDRA_HOME%;%CASSANDRA_CONF%;%CLASSPATH%;%CASSANDRA_HOME%\build\classes
REM Include the build\classes directory so it works in development
set CASSANDRA_CLASSPATH=%CLASSPATH%;%CASSANDRA_HOME%\build\classes
set CASSANDRA_PARAMS=-Dcassandra -Dstorage-config="%CASSANDRA_CONF%"
goto runDaemon

Expand Down

0 comments on commit 85047d0

Please sign in to comment.