2005-11-11 10:05:53 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
buildDir=target
|
|
|
|
classesDir=${buildDir}/classes
|
|
|
|
srcDir=src/main/java
|
|
|
|
|
2005-11-16 22:39:28 -05:00
|
|
|
rm -rf bootstrap-mini.jar ${buildDir} > /dev/null 2>&1
|
2005-11-11 10:05:53 -05:00
|
|
|
|
|
|
|
mkdir -p ${classesDir}
|
|
|
|
|
|
|
|
"$JAVA_HOME/bin/javac" -g -d ${classesDir} `find ${srcDir} -name '*.java'`
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
2005-11-11 10:05:53 -05:00
|
|
|
|
2005-11-16 22:39:28 -05:00
|
|
|
( cd ${classesDir} ; "$JAVA_HOME/bin/jar" -cfm ../../bootstrap-mini.jar ../../src/main/resources/META-INF/MANIFEST.MF * )
|
2005-11-15 22:43:28 -05:00
|
|
|
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|