set a default path to java, for cron

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164002 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-21 04:47:54 +00:00
parent 40fbb1698d
commit 125430b2f6
1 changed files with 4 additions and 1 deletions

View File

@ -27,4 +27,7 @@ if [ "$1" == "profile" ]; then
shift
fi
nice -n 19 java -Xmx128M -Xms64M -Xincgc $JAVA_OPTS -classpath ${CP} org.apache.maven.tools.repoclean.Main $* | tee repoclean-log.txt
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME=/usr/local/java
nice -n 19 $JAVA_HOME/bin/java -Xmx128M -Xms64M -Xincgc $JAVA_OPTS -classpath ${CP} org.apache.maven.tools.repoclean.Main $* | tee repoclean-log.txt