source: trunk/indexers/lucene-gs/winMake.bat@ 13840

Last change on this file since 13840 was 13840, checked in by kjdon, 15 years ago

fixed up some bugs in windows makefiles

  • 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 LUCENEHOME=.
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
17set LUCENE_JAR=.\lib\lucene-core-2.0.0.jar
18set MYCLASSPATH=%LUCENE_JAR%;%JAVACLASSDIR%
19
20
21if ""%1"" == """" goto all
22if ""%1"" == ""all"" goto all
23if ""%1"" == ""install"" goto install
24if ""%1"" == ""clean"" goto clean
25
26:unknown
27 echo Error: Unrecognized argument %1.
28 goto done
29
30:all
31 if not exist %JAVACLASSDIR% mkdir %JAVACLASSDIR%
32 echo Compiling Greenstone Lucene Java classes ...
33 %JAVAC% -d %JAVACLASSDIR% -classpath %MYCLASSPATH% %JAVACOPTIONS% -sourcepath src src\org\greenstone\LuceneWrapper\*.java
34 cd %JAVACLASSDIR%
35 %JAR% xf ..\%LUCENE_JAR%
36 cd ..
37 %JAR% cf LuceneWrapper.jar -C %JAVACLASSDIR% .
38 goto done
39
40:install
41 goto done
42
43:clean
44 echo Cleaning up Greenstone Lucene ...
45 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
46 if exist LuceneWrapper.jar del LuceneWrapper.jar
47 goto done
48
49:done
50
Note: See TracBrowser for help on using the repository browser.