~ubuntu-branches/ubuntu/precise/jing-trang/precise

1 by Samuel Thibault
Import upstream version 20090818
1
@echo off
2
setlocal
3
if exist "%JAVA_HOME%\bin\java.exe" goto found
4
echo You must set JAVA_HOME to the directory containing the JDK
5
exit /b 1
6
:found
7
rem %~dp0 gives the directory including the trailing slash
8
rem we need the directory without the trailing slash, so add the dot
9
set JING_TRANG_HOME=%~dp0.
10
"%JAVA_HOME%\bin\java.exe" -classpath "%JING_TRANG_HOME%\lib\ant-launcher.jar" "-Dant.home=%JING_TRANG_HOME%" org.apache.tools.ant.launch.Launcher -buildfile "%JING_TRANG_HOME%\build.xml" %*