root/jala/branches/release-1.0/util/HopKit/build.sh
@
43
| Revision 43, 2.0 kB (checked in by robert, 6 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | ## |
| 4 | ## Jala Project [http://opensvn.csie.org/traccgi/jala] |
| 5 | ## |
| 6 | ## Copyright 2004 ORF Online und Teletext GmbH |
| 7 | ## |
| 8 | ## Licensed under the Apache License, Version 2.0 (the ``License''); |
| 9 | ## you may not use this file except in compliance with the License. |
| 10 | ## You may obtain a copy of the License at |
| 11 | ## |
| 12 | ## http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | ## |
| 14 | ## Unless required by applicable law or agreed to in writing, software |
| 15 | ## distributed under the License is distributed on an ``AS IS'' BASIS, |
| 16 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | ## See the License for the specific language governing permissions and |
| 18 | ## limitations under the License. |
| 19 | ## |
| 20 | ## $Revision: 3 $ |
| 21 | ## $LastChangedBy: tobi $ |
| 22 | ## $LastChangedDate: 2007-01-19 14:33:08 +0100 (Fri, 19 Jan 2007) $ |
| 23 | ## $HeadURL: https://robert@opensvn.csie.org/jala/trunk/util/HopKit/build.bat $ |
| 24 | ## |
| 25 | |
| 26 | #-------------------------------------------- |
| 27 | # buildfile for ant 1.6.5 |
| 28 | #-------------------------------------------- |
| 29 | if test -z "${JAVA_HOME}" ; then |
| 30 | echo "ERROR: JAVA_HOME not found in your environment." |
| 31 | echo "Please, set the JAVA_HOME variable in your environment to match the" |
| 32 | echo "location of the Java Virtual Machine you want to use." |
| 33 | exit |
| 34 | fi |
| 35 | |
| 36 | #---- store path of this script as BUILD_HOME |
| 37 | BUILD_HOME=$(dirname $0) |
| 38 | if [ "${BUILD_HOME:0:1}" != "/" ] ; then |
| 39 | # convert to absolute path |
| 40 | BUILD_HOME=${PWD}/${BUILD_HOME} |
| 41 | fi |
| 42 | export BUILD_HOME |
| 43 | |
| 44 | #---- Slurp the command line arguments. |
| 45 | while [ $# -ne 0 ] |
| 46 | do |
| 47 | ANT_CMD_LINE_ARGS="${ANT_CMD_LINE_ARGS} $1" |
| 48 | shift |
| 49 | done |
| 50 | |
| 51 | #---- if there is no build.xml in the working directory, use the lib.xml |
| 52 | #---- in this directory |
| 53 | if test ! -f ${PWD}/build.xml ; then |
| 54 | BUILD_XML="${BUILD_HOME}/lib.xml" |
| 55 | else |
| 56 | BUILD_XML="${PWD}/build.xml" |
| 57 | fi |
| 58 | |
| 59 | CP="${CLASSPATH}:${BUILD_HOME}/lib/ant-launcher.jar" |
| 60 | |
| 61 | "${JAVA_HOME}/bin/java" -classpath "${CP}" -Dant.home="${BUILD_HOME}" org.apache.tools.ant.launch.Launcher -propertyfile "${PWD}/build.properties" -file "${BUILD_XML}" ${ANT_CMD_LINE_ARGS} |
| 62 | |
| 63 | exit |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/jala/chrome/common/trac_banner.png)