Permalink
Browse files

Add log4j.properties to classpath for shell scripts.

  • Loading branch information...
1 parent d628362 commit 2d1b21b60f8e46b1e02864e87b1eb84d0cfcb975 @jkreps jkreps committed Apr 26, 2009
Showing with 10 additions and 0 deletions.
  1. +2 −0 bin/build-readonly-store.sh
  2. +1 −0 bin/run-class.sh
  3. +1 −0 bin/sort.sh
  4. +2 −0 bin/voldemort-server.sh
  5. +1 −0 build.properties
  6. +3 −0 build.xml
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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" />

0 comments on commit 2d1b21b

Please sign in to comment.