source: main/trunk/greenstone2/common-src/indexers/lucene-gs/winMake.bat@ 27330

Last change on this file since 27330 was 27330, checked in by kjdon, 8 years ago

upgrading gs2 to use Lucene 3 - same as gs3 uses.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1@echo off
2
3set LUCENEHOME=.
4
5rem ---- Where to put class files ----
6set JAVACLASSDIR3=classes3
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 LUCENE3_JAR=.\lib\lucene-core-3.3.0.jar
18set MYCLASSPATH3=%LUCENE3_JAR%;%JAVACLASSDIR3%
19
20if "%DEBUG%" == "" (
21 set MAKE_VARS=DEBUG=0
22) else (
23 set MAKE_VARS=DEBUG=%DEBUG%
24)
25
26if ""%1"" == """" goto all
27if ""%1"" == ""all"" goto all
28if ""%1"" == ""install"" goto install
29if ""%1"" == ""clean"" goto clean
30
31:unknown
32 echo Error: Unrecognized argument %1.
33 goto done
34
35:all
36 if not exist %JAVACLASSDIR3% mkdir %JAVACLASSDIR3%
37 echo Compiling Greenstone Lucene version 3.x Java classes ...
38 %JAVAC% -d %JAVACLASSDIR3% -classpath %MYCLASSPATH3% %JAVACOPTIONS% -sourcepath src src\org\greenstone\LuceneWrapper3\*.java
39 cd %JAVACLASSDIR3%
40 %JAR% xf ..\%LUCENE3_JAR%
41 cd ..
42 %JAR% cf LuceneWrapper3.jar -C %JAVACLASSDIR3% .
43 goto done
44
45:install
46 goto done
47
48:clean
49 echo Cleaning up Greenstone Lucene ...
50 if exist %JAVACLASSDIR3% rmdir /S /Q %JAVACLASSDIR3%
51 if exist LuceneWrapper3.jar del LuceneWrapper3.jar
52 goto done
53
54:done
55
Note: See TracBrowser for help on using the repository browser.