Author: ivol37 at gmail.com
Date: Fri Jan 14 14:54:53 2011
New Revision: 636

Log:


Added:
   sandbox/ivol/standalone-cassandra/cassandra-cli - r2d2.bat
   sandbox/ivol/standalone-cassandra/cassandra-cli - veers.bat
   sandbox/ivol/standalone-cassandra/compile

Added: sandbox/ivol/standalone-cassandra/cassandra-cli - r2d2.bat
==============================================================================
--- (empty file)
+++ sandbox/ivol/standalone-cassandra/cassandra-cli - r2d2.bat  Fri Jan 14 
14:54:53 2011
@@ -0,0 +1,52 @@
+ at REM
+ at REM  Licensed to the Apache Software Foundation (ASF) under one or more
+ at REM  contributor license agreements.  See the NOTICE file distributed with
+ at REM  this work for additional information regarding copyright ownership.
+ at REM  The ASF licenses this file to You under the Apache License, Version 
2.0
+ at REM  (the "License"); you may not use this file except in compliance with
+ at REM  the License.  You may obtain a copy of the License at
+ at REM
+ at REM      http://www.apache.org/licenses/LICENSE-2.0
+ at REM
+ at REM  Unless required by applicable law or agreed to in writing, software
+ at REM  distributed under the License is distributed on an "AS IS" BASIS,
+ at REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+ at REM  See the License for the specific language governing permissions and
+ at REM  limitations under the License.
+
+
+ at echo off
+if "%OS%" == "Windows_NT" setlocal
+
+set CASSANDRA_HOME=.
+if NOT DEFINED JAVA_HOME goto err
+
+REM Ensure that any user defined CLASSPATH variables are not used on startup
+set CLASSPATH=
+
+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 "%%i"
+goto okClasspath
+
+:append
+set CLASSPATH=%CLASSPATH%;%1
+goto :eof
+
+:okClasspath
+REM Include the build\classes directory so it works in development
+set CASSANDRA_CLASSPATH=%CLASSPATH%;"%CASSANDRA_HOME%\build\classes"
+goto runCli
+
+:runCli
+echo Starting Cassandra Client
+echo CASSANDRA_HOME=%CASSANDRA_HOME%
+"%JAVA_HOME%\bin\java" -Xmx1524m -cp %CASSANDRA_CLASSPATH% 
org.apache.cassandra.cli.CliMain %* -host 172.16.2.206 -port 9160
+goto finally
+
+:err
+echo The JAVA_HOME environment variable must be set to run this program!
+pause
+
+:finally
+
+ENDLOCAL

Added: sandbox/ivol/standalone-cassandra/cassandra-cli - veers.bat
==============================================================================
--- (empty file)
+++ sandbox/ivol/standalone-cassandra/cassandra-cli - veers.bat Fri Jan 14 
14:54:53 2011
@@ -0,0 +1,52 @@
+ at REM
+ at REM  Licensed to the Apache Software Foundation (ASF) under one or more
+ at REM  contributor license agreements.  See the NOTICE file distributed with
+ at REM  this work for additional information regarding copyright ownership.
+ at REM  The ASF licenses this file to You under the Apache License, Version 
2.0
+ at REM  (the "License"); you may not use this file except in compliance with
+ at REM  the License.  You may obtain a copy of the License at
+ at REM
+ at REM      http://www.apache.org/licenses/LICENSE-2.0
+ at REM
+ at REM  Unless required by applicable law or agreed to in writing, software
+ at REM  distributed under the License is distributed on an "AS IS" BASIS,
+ at REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+ at REM  See the License for the specific language governing permissions and
+ at REM  limitations under the License.
+
+
+ at echo off
+if "%OS%" == "Windows_NT" setlocal
+
+set CASSANDRA_HOME=.
+if NOT DEFINED JAVA_HOME goto err
+
+REM Ensure that any user defined CLASSPATH variables are not used on startup
+set CLASSPATH=
+
+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 "%%i"
+goto okClasspath
+
+:append
+set CLASSPATH=%CLASSPATH%;%1
+goto :eof
+
+:okClasspath
+REM Include the build\classes directory so it works in development
+set CASSANDRA_CLASSPATH=%CLASSPATH%;"%CASSANDRA_HOME%\build\classes"
+goto runCli
+
+:runCli
+echo Starting Cassandra Client
+echo CASSANDRA_HOME=%CASSANDRA_HOME%
+"%JAVA_HOME%\bin\java" -Xmx1524m -cp %CASSANDRA_CLASSPATH% 
org.apache.cassandra.cli.CliMain %* -host 172.16.2.203 -port 9160
+goto finally
+
+:err
+echo The JAVA_HOME environment variable must be set to run this program!
+pause
+
+:finally
+
+ENDLOCAL

Added: sandbox/ivol/standalone-cassandra/compile
==============================================================================
--- (empty file)
+++ sandbox/ivol/standalone-cassandra/compile   Fri Jan 14 14:54:53 2011
@@ -0,0 +1,3 @@
+CLASSPATH=`conf;target;"lib\antlr-3.1.3.jar";"lib\apache-cassandra-0.7.0.jar";"lib\avro-1.4.0-fixes.jar";"lib\avro-1.4.0-sources-fixes.jar";"lib\commons-cli-1.1.jar";"lib\commons-codec-1.2.jar";"lib\commons-collections-3.2.1.jar";"lib\commons-lang-2.4.jar";"lib\concurrentlinkedhashmap-lru-1.1.jar";"lib\guava-r05.jar";"lib\high-scale-lib.jar";"lib\ivy-2.1.0.jar";"lib\jackson-core-asl-1.4.0.jar";"lib\jackson-mapper-asl-1.4.0.jar";"lib\jetty-6.1.21.jar";"lib\jetty-util-6.1.21.jar";"lib\jline-0.9.94.jar";"lib\json-simple-1.1.jar";"lib\jug-2.0.0.jar";"lib\libthrift-0.5.jar";"lib\log4j-1.2.16.jar";"lib\servlet-api-2.5-20081211.jar";"lib\slf4j-api-1.6.1.jar";"lib\slf4j-log4j12-1.6.1.jar";"lib\snakeyaml-1.6.jar"`
+
+javac -cp $CLASSPATH src\org\amdatu\cassandra\Main.java -d target
\ No newline at end of file

Reply via email to