removed obsolete code, added appname as 2nd parameter for
app-package target
This commit is contained in:
parent
a8e41a8695
commit
8f8e572459
1 changed files with 12 additions and 13 deletions
|
@ -1,27 +1,26 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
REM --------------------------------------------
|
|
||||||
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/
|
|
||||||
REM "javadoc" target builds the javadoc
|
|
||||||
REM "package" target builds core + jar + javadoc + distribution
|
|
||||||
REM --------------------------------------------
|
|
||||||
set TARGET=%1%
|
set TARGET=%1%
|
||||||
|
set JAVA_HOME=c:\programme\jdk13
|
||||||
|
|
||||||
REM --------------------------------------------
|
REM --------------------------------------------
|
||||||
REM No need to edit anything past here
|
REM No need to edit anything past here
|
||||||
REM --------------------------------------------
|
REM --------------------------------------------
|
||||||
|
|
||||||
set BUILDFILE=build.xml
|
set BUILDFILE=build.xml
|
||||||
if "%TARGET%" == "" goto setdist
|
if "%TARGET%" == "" goto setdist
|
||||||
|
goto cont1
|
||||||
|
|
||||||
|
:cont1
|
||||||
|
if not "%2%" == "" goto setapp
|
||||||
goto final
|
goto final
|
||||||
|
|
||||||
:setdist
|
:setdist
|
||||||
set TARGET=jar
|
set TARGET=usage
|
||||||
|
goto cont1
|
||||||
|
|
||||||
|
:setapp
|
||||||
|
set APPNAME=-Dapplication=%2%
|
||||||
goto final
|
goto final
|
||||||
|
|
||||||
:final
|
:final
|
||||||
|
@ -34,7 +33,7 @@ if exist %JAVA_HOME%\lib\tools.jar set CP=%CP%;%JAVA_HOME%\lib\tools.jar
|
||||||
echo Classpath: %CP%
|
echo Classpath: %CP%
|
||||||
echo JAVA_HOME: %JAVA_HOME%
|
echo JAVA_HOME: %JAVA_HOME%
|
||||||
|
|
||||||
%JAVA_HOME%\bin\java.exe -classpath "%CP%" org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%
|
%JAVA_HOME%\bin\java.exe -classpath "%CP%" %APPNAME% org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%
|
||||||
|
|
||||||
goto end
|
goto end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue