2004-07-26 21:26:46 -04:00
|
|
|
@echo off
|
2004-07-27 05:37:56 -04:00
|
|
|
|
2004-07-26 21:26:46 -04:00
|
|
|
set buildDir=target
|
2004-09-15 07:03:12 -04:00
|
|
|
set classesDir=%buildDir%\classes
|
|
|
|
set srcDir=src\main\java
|
2004-07-27 05:37:56 -04:00
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
if exist %classesDir% rmdir /S/Q %buildDir%
|
2004-07-27 05:37:56 -04:00
|
|
|
if exist %buildDir% rmdir /S/Q %buildDir%
|
|
|
|
|
2004-07-26 21:26:46 -04:00
|
|
|
mkdir %buildDir%
|
2004-09-15 07:03:12 -04:00
|
|
|
mkdir %classesDir%
|
2004-07-27 05:37:56 -04:00
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
%JAVA_HOME%\bin\javac -d %classesDir% %srcDir%\*.java
|
2004-07-27 05:37:56 -04:00
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
cd %classesDir%
|
|
|
|
%JAVA_HOME%\bin\jar -cfm ..\mboot.jar ..\..\manifest.txt *.*
|
|
|
|
cd ..\..
|
2004-07-27 05:37:56 -04:00
|
|
|
|
2004-09-15 07:03:12 -04:00
|
|
|
copy %buildDir%\mboot.jar ..
|