source: gsdl/trunk/trunk/mgpp/java/org/greenstone/mgpp/winMake.bat@ 16583

Last change on this file since 16583 was 16583, checked in by davidb, 16 years ago

Undoing change commited in r16582

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1@echo off
2
3set MGPPHOME=..\..\..\..
4
5rem ---- Where to put class files ----
6set JAVACLASSDIR=classes
7
8rem ---- Name and location of java programs ----
9set JAVAC="%JAVA_HOME%\bin\javac"
10set JAVAH="%JAVA_HOME%\bin\javah"
11set JAVA="%JAVA_HOME%\bin\java"
12set JAVADOC="%JAVA_HOME%\bin\javadoc"
13set JAR="%JAVA_HOME%\bin\jar"
14
15set JAVACOPTIONS= -deprecation -g -O
16
17
18if ""%1"" == """" goto all
19if ""%1"" == ""all"" goto all
20if ""%1"" == ""install"" goto install
21if ""%1"" == ""clean"" goto clean
22
23:unknown
24 echo Error: Unrecognized argument %1.
25 goto done
26
27:all
28 if not exist %JAVACLASSDIR% mkdir %JAVACLASSDIR%
29 echo Compiling MGPP Java classes ...
30 %JAVAC% -d %JAVACLASSDIR% %JAVACOPTIONS% *.java
31 %JAVAH% -classpath %JAVACLASSDIR% -d %MGPPHOME%\jni org.greenstone.mgpp.MGPPWrapper
32 %JAR% cf %MGPPHOME%\mgpp.jar -C %JAVACLASSDIR% org
33 goto done
34
35:install
36 goto done
37
38:clean
39 echo Cleaning up...
40 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
41 if exist %MGPPHOME%\mgpp.jar del %MGPPHOME%\mgpp.jar
42 if exist %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h del %MGPPHOME%\jni\org_greenstone_mgpp_MGPPWrapper.h
43 goto done
44
45:done
Note: See TracBrowser for help on using the repository browser.