Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add log4j.properties to classpath for shell scripts.

  • Loading branch information...
commit 2d1b21b60f8e46b1e02864e87b1eb84d0cfcb975 1 parent d628362
@jkreps jkreps authored
View
2  bin/build-readonly-store.sh
@@ -34,4 +34,6 @@ do
CLASSPATH=$CLASSPATH:$file
done
+CLASSPATH=$CLASSPATH:$base_dir/dist/resources
+
java -Xmx2G -server -cp $CLASSPATH voldemort.store.readonly.JsonStoreBuilder ${1} ${2} ${3} ${4} ${5} ${6} ${7}
View
1  bin/run-class.sh
@@ -27,6 +27,7 @@ for file in $base_dir/dist/*.jar;
do
CLASSPATH=$CLASSPATH:$file
done
+CLASSPATH=$CLASSPATH:$base_dir/dist/resources
export CLASSPATH
java -Xmx2G -server -cp $CLASSPATH ${1} ${2} ${3} ${4} ${5} ${6} ${7}
View
1  bin/sort.sh
@@ -33,5 +33,6 @@ for file in $base_dir/lib/*.jar;
do
CLASSPATH=$CLASSPATH:$file
done
+CLASSPATH=$CLASSPATH:$base_dir/dist/resources
java -agentlib:hprof=cpu=samples,depth=10 -Xmx2G -server -cp $CLASSPATH voldemort.store.readonly.StringSorter ${1} ${2} ${3}
View
2  bin/voldemort-server.sh
@@ -34,4 +34,6 @@ do
CLASSPATH=$CLASSPATH:$file
done
+CLASSPATH=$CLASSPATH:$base_dir/dist/resources
+
java -Xmx2G -server -cp $CLASSPATH -Dcom.sun.management.jmxremote voldemort.server.VoldemortServer ${1}
View
1  build.properties
@@ -3,6 +3,7 @@ src.dir=src
java.dir=src/java
lib.dir=lib
classes.dir=dist/classes
+resources.dir=dist/resources
commontestsrc.dir=test/common
unittestsrc.dir=test/unit
inttestsrc.dir=test/integration
View
3  build.xml
@@ -64,6 +64,9 @@
<exclude name="**/log4j.properties" />
</fileset>
</copy>
+ <!-- place to put log4j.properties -->
+ <replace-dir dir="${resources.dir}"/>
+ <copy file="${java.dir}/log4j.properties" todir="${resources.dir}"/>
<javac destdir="${classes.dir}" target="1.5" debug="true" deprecation="true" failonerror="true">
<src path="${java.dir}" />
<classpath refid="main-classpath" />
Please sign in to comment.
Something went wrong with that request. Please try again.