| 1 | :: |
|---|
| 2 | :: Jala Project [http://opensvn.csie.org/traccgi/jala] |
|---|
| 3 | :: |
|---|
| 4 | :: Copyright 2004 ORF Online und Teletext GmbH |
|---|
| 5 | :: |
|---|
| 6 | :: Licensed under the Apache License, Version 2.0 (the ``License''); |
|---|
| 7 | :: you may not use this file except in compliance with the License. |
|---|
| 8 | :: You may obtain a copy of the License at |
|---|
| 9 | :: |
|---|
| 10 | :: http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 11 | :: |
|---|
| 12 | :: Unless required by applicable law or agreed to in writing, software |
|---|
| 13 | :: distributed under the License is distributed on an ``AS IS'' BASIS, |
|---|
| 14 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 15 | :: See the License for the specific language governing permissions and |
|---|
| 16 | :: limitations under the License. |
|---|
| 17 | :: |
|---|
| 18 | :: $Revision$ |
|---|
| 19 | :: $LastChangedBy$ |
|---|
| 20 | :: $LastChangedDate$ |
|---|
| 21 | :: $HeadURL$ |
|---|
| 22 | :: |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | @echo off |
|---|
| 26 | |
|---|
| 27 | REM -------------------------------------------- |
|---|
| 28 | REM buildfile for ant 1.6.5 |
|---|
| 29 | REM -------------------------------------------- |
|---|
| 30 | |
|---|
| 31 | rem set JAVA_HOME=c:\programme\Java\jre1.5.0_05 |
|---|
| 32 | |
|---|
| 33 | REM -------------------------------------------- |
|---|
| 34 | REM No need to edit anything past here |
|---|
| 35 | REM -------------------------------------------- |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | rem ---- store path of this script as BUILD_HOME |
|---|
| 39 | set BUILD_HOME=%~dp0 |
|---|
| 40 | |
|---|
| 41 | rem ---- Slurp the command line arguments. This loop allows for an unlimited number |
|---|
| 42 | rem ---- of arguments (up to the command line limit, anyway). |
|---|
| 43 | set ANT_CMD_LINE_ARGS=%1 |
|---|
| 44 | if ""%1""=="""" goto final |
|---|
| 45 | shift |
|---|
| 46 | :setupArgs |
|---|
| 47 | if ""%1""=="""" goto final |
|---|
| 48 | if ""%1""==""-noclasspath"" goto final |
|---|
| 49 | set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 |
|---|
| 50 | shift |
|---|
| 51 | goto setupArgs |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | :final |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | rem ---- if there is no build.xml in the working directory, use the library |
|---|
| 58 | rem ---- in this directory |
|---|
| 59 | if not exist ".\build.xml" ( |
|---|
| 60 | set ANT_CMD_LINE_ARGS=-file "%BUILD_HOME%lib.xml" %ANT_CMD_LINE_ARGS% |
|---|
| 61 | ) |
|---|
| 62 | |
|---|
| 63 | echo buildhome: %BUILD_HOME% |
|---|
| 64 | if "%JAVA_HOME%" == "" goto javahomeerror |
|---|
| 65 | |
|---|
| 66 | set CP=%CLASSPATH%;%BUILD_HOME%lib/ant-launcher.jar |
|---|
| 67 | |
|---|
| 68 | echo CLASSPATH: "%CP%" |
|---|
| 69 | echo JAVA_HOME: "%JAVA_HOME%" |
|---|
| 70 | |
|---|
| 71 | "%JAVA_HOME%\bin\java.exe" -classpath "%CP%" %APPNAME% "-Dant.home=." org.apache.tools.ant.launch.Launcher -propertyfile "%CD%\build.properties" %ANT_CMD_LINE_ARGS% |
|---|
| 72 | |
|---|
| 73 | goto end |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | REM -----------ERROR------------- |
|---|
| 77 | :javahomeerror |
|---|
| 78 | echo "ERROR: JAVA_HOME not found in your environment." |
|---|
| 79 | echo "Please, set the JAVA_HOME variable in your environment to match the" |
|---|
| 80 | echo "location of the Java Virtual Machine you want to use." |
|---|
| 81 | |
|---|
| 82 | :end |
|---|
| 83 | |
|---|