source: main/trunk/greenstone2/build-src/src/java/org/nzdl/gsdl/winMake.bat@ 21421

Last change on this file since 21421 was 21421, checked in by davidb, 14 years ago

Previous winMake.bat always compiled up Java code, even if nothing had changed. Changed to generate .class files in more logical place, and modified jar command to pick up on them in their new location

  • Property svn:executable set to *
File size: 924 bytes
RevLine 
[20872]1@echo off
2
3set CLASSES=ApplyXSLT.class ApplyXSLTUtil.class
4
5rem ---- Name and location of java programs ----
6set JAVAC="%JAVA_HOME%\bin\javac"
7set JAVA="%JAVA_HOME%\bin\java"
8set JAR="%JAVA_HOME%\bin\jar"
9
[20879]10set JAVACOPTIONS=-deprecation -g -O
[20872]11
12if ""%1"" == """" goto all
13if ""%1"" == ""all"" goto all
14if ""%1"" == ""install"" goto install
15if ""%1"" == ""clean"" goto clean
16
17:unknown
18 echo Error: Unrecognized argument %1.
19 goto done
20
21:all
22 echo Compiling ApplyXSLT classes ...
[21421]23 %JAVAC% %JAVACOPTIONS% -d ..\..\.. -classpath ..\..\.. *.java
[20872]24 %JAR% cf ApplyXSLT.jar org
[21421]25 %JAR% cvf ApplyXSLT.jar -C ..\..\.. org\nzdl\gsdl\ApplyXSLT.class org\nzdl\gsdl\ApplyXSLTUtil.class
[20872]26 goto done
27
28:install
29 goto done
30
31:clean
[20879]32 echo Cleaning up ApplyXSLT ...
[20872]33 if exist ApplyXSLT.jar del ApplyXSLT.jar
[21421]34 if exist ApplyXSLT.class del ApplyXSLT.class
35 if exist ApplyXSLTUtil.class del ApplyXSLTUtil.class
[20872]36 goto done
37
38:done
39
Note: See TracBrowser for help on using the repository browser.