2001-02-09 16:31:23 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
|
|
REM --------------------------------------------
|
2002-04-26 15:10:59 +00:00
|
|
|
REM Default == jar
|
|
|
|
REM "snapshot" target compiles and builds jar in src/ and lib/
|
|
|
|
REM "checkout" target gets sources from helma.org in src/
|
|
|
|
REM "compile" target compiles java sources in work/
|
|
|
|
REM "jar" target compiles and builds jar in work/
|
2001-02-09 16:31:23 +00:00
|
|
|
REM "javadoc" target builds the javadoc
|
|
|
|
REM "package" target builds core + jar + javadoc + distribution
|
|
|
|
REM --------------------------------------------
|
|
|
|
set TARGET=%1%
|
|
|
|
|
|
|
|
|
|
|
|
REM --------------------------------------------
|
|
|
|
REM No need to edit anything past here
|
|
|
|
REM --------------------------------------------
|
|
|
|
set BUILDFILE=build.xml
|
|
|
|
if "%TARGET%" == "" goto setdist
|
|
|
|
goto final
|
|
|
|
|
|
|
|
:setdist
|
|
|
|
set TARGET=jar
|
|
|
|
goto final
|
|
|
|
|
|
|
|
:final
|
|
|
|
|
|
|
|
if "%JAVA_HOME%" == "" goto javahomeerror
|
|
|
|
|
2001-10-22 16:43:40 +00:00
|
|
|
set CP=%CLASSPATH%;ant.jar;jaxp.jar;crimson.jar
|
2001-10-23 18:08:21 +00:00
|
|
|
if exist %JAVA_HOME%\lib\tools.jar set CP=%CP%;%JAVA_HOME%\lib\tools.jar
|
2001-02-09 16:31:23 +00:00
|
|
|
|
|
|
|
echo Classpath: %CP%
|
|
|
|
echo JAVA_HOME: %JAVA_HOME%
|
|
|
|
|
|
|
|
%JAVA_HOME%\bin\java.exe -classpath "%CP%" org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%
|
|
|
|
|
|
|
|
goto end
|
|
|
|
|
|
|
|
|
|
|
|
REM -----------ERROR-------------
|
|
|
|
:javahomeerror
|
|
|
|
echo "ERROR: JAVA_HOME not found in your environment."
|
|
|
|
echo "Please, set the JAVA_HOME variable in your environment to match the"
|
|
|
|
echo "location of the Java Virtual Machine you want to use."
|
|
|
|
|
|
|
|
:end
|
2002-04-26 15:10:59 +00:00
|
|
|
|