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

Last change on this file since 19524 was 19524, checked in by ak19, 15 years ago

Dr Bainbridge updated the Windows makefiles to 1. Take the DEBUG flag so that we can recompile all of GS2 in the Vis C++ 2005 Express Edition command prompt and then use its Debugger on the C code. 2. Now GS2 make clean command cleans up all object and lib files that its make generates.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 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.3.2.jar
18set MYCLASSPATH=%LUCENE_JAR%;%JAVACLASSDIR%
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 %JAVACLASSDIR% mkdir %JAVACLASSDIR%
37 echo Compiling Greenstone Lucene Java classes ...
38 %JAVAC% -d %JAVACLASSDIR% -classpath %MYCLASSPATH% %JAVACOPTIONS% -sourcepath src src\org\greenstone\LuceneWrapper\*.java
39 cd %JAVACLASSDIR%
40 %JAR% xf ..\%LUCENE_JAR%
41 cd ..
42 %JAR% cf LuceneWrapper.jar -C %JAVACLASSDIR% .
43 goto done
44
45:install
46 goto done
47
48:clean
49 echo Cleaning up Greenstone Lucene ...
50 if exist %JAVACLASSDIR% rmdir /S /Q %JAVACLASSDIR%
51 if exist LuceneWrapper.jar del LuceneWrapper.jar
52 goto done
53
54:done
55
Note: See TracBrowser for help on using the repository browser.