2004-07-25 23:53:12 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
buildDir=target
|
2004-09-15 07:03:12 -04:00
|
|
|
classesDir=${buildDir}/classes
|
|
|
|
srcDir=src/main/java
|
2004-07-25 23:53:12 -04:00
|
|
|
|
|
|
|
rm -rf ${buildDir} > /dev/null 2>&1
|
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
mkdir -p ${classesDir}
|
2004-07-25 23:53:12 -04:00
|
|
|
|
2004-12-04 23:12:25 -05:00
|
|
|
#javac -d ${classesDir} ${srcDir}/*.java
|
2005-05-08 18:50:01 -04:00
|
|
|
"$JAVA_HOME/bin/javac" -g -d ${classesDir} `find ${srcDir} -name '*.java'`
|
2004-07-25 23:53:12 -04:00
|
|
|
|
2005-05-08 18:50:01 -04:00
|
|
|
( cd ${classesDir} ; "$JAVA_HOME/bin/jar" -cfm ../mboot.jar ../../manifest.txt * )
|
2004-07-26 21:24:16 -04:00
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
cp ${buildDir}/mboot.jar ..
|