2006-11-17 10:14:25 +07:00
|
|
|
# Module compiling script
|
|
|
|
# Ported from Windows script Marek Mosiewicz<marek.mosiewicz@jotel.com.pl>
|
|
|
|
|
|
|
|
|
2007-06-04 22:26:15 +07:00
|
|
|
#check java home
|
|
|
|
if [ $JAVA_HOME ]; then
|
|
|
|
export PATH=$JAVA_HOME/bin:$PATH
|
|
|
|
else
|
|
|
|
echo JAVA_HOME is not set.
|
|
|
|
echo You may not be able to build Adempiere
|
|
|
|
echo Set JAVA_HOME to the directory of your local JDK.
|
|
|
|
exit
|
|
|
|
fi
|
2006-11-17 10:14:25 +07:00
|
|
|
|
2007-06-04 22:26:15 +07:00
|
|
|
# check jdk
|
|
|
|
if [ ! -f $JAVA_HOME/lib/tools.jar ] ; then
|
|
|
|
echo "** Need full Java SDK **"
|
|
|
|
exit
|
2006-11-17 10:14:25 +07:00
|
|
|
fi
|
|
|
|
|
2007-06-04 22:26:15 +07:00
|
|
|
#classpath
|
|
|
|
export ANT_CLASSPATH=$CLASSPATH:../tools/lib/ant.jar:../tools/lib/ant-launcher.jar:../tools/lib/ant-swing.jar:../tools/lib/ant-commons-net.jar:../tools/lib/commons-net.jar:$JAVA_HOME/lib/tools.jar
|
|
|
|
|
2006-11-17 10:14:25 +07:00
|
|
|
echo running Ant
|
2007-06-04 22:26:15 +07:00
|
|
|
$JAVA_HOME/bin/java -Xmx512m -classpath $ANT_CLASSPATH -Dant.home="." $ANT_PROPERTIES org.apache.tools.ant.Main
|