root/jala/branches/release-1.0/util/HopKit/build.bat @ 43

Revision 43, 2.3 kB (checked in by robert, 6 years ago)

* committed *nix shell script added in trunk
* added executable svn-property to all scripts

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Revision Author HeadURL Id
Line 
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
27REM --------------------------------------------
28REM buildfile for ant 1.6.5
29REM --------------------------------------------
30
31rem set JAVA_HOME=c:\programme\Java\jre1.5.0_05
32
33REM --------------------------------------------
34REM No need to edit anything past here
35REM --------------------------------------------
36
37
38rem ---- store path of this script as BUILD_HOME
39set BUILD_HOME=%~dp0
40
41rem ---- Slurp the command line arguments. This loop allows for an unlimited number
42rem ---- of arguments (up to the command line limit, anyway).
43set ANT_CMD_LINE_ARGS=%1
44if ""%1""=="""" goto final
45shift
46:setupArgs
47if ""%1""=="""" goto final
48if ""%1""==""-noclasspath"" goto final
49set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
50shift
51goto setupArgs
52
53
54:final
55
56
57rem ---- if there is no build.xml in the working directory, use the library
58rem ---- in this directory
59if not exist ".\build.xml" (
60   set ANT_CMD_LINE_ARGS=-file "%BUILD_HOME%lib.xml" %ANT_CMD_LINE_ARGS%
61)
62
63echo buildhome: %BUILD_HOME%
64if "%JAVA_HOME%" == "" goto javahomeerror
65
66set CP=%CLASSPATH%;%BUILD_HOME%lib/ant-launcher.jar
67
68echo CLASSPATH: "%CP%"
69echo 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
73goto end
74
75
76REM -----------ERROR-------------
77:javahomeerror
78echo "ERROR: JAVA_HOME not found in your environment."
79echo "Please, set the JAVA_HOME variable in your environment to match the"
80echo "location of the Java Virtual Machine you want to use."
81
82:end
83
Note: See TracBrowser for help on using the browser.