Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 40 lines (36 sloc) 1.373 kb
14412f7 @JacquesLeRoux EOL was wrong since ASL2 headers change yesterday. Thanks to Christia…
JacquesLeRoux authored
1 #!/bin/sh
2 #####################################################################
3 # Licensed to the Apache Software Foundation (ASF) under one
4 # or more contributor license agreements. See the NOTICE file
5 # distributed with this work for additional information
6 # regarding copyright ownership. The ASF licenses this file
7 # to you under the Apache License, Version 2.0 (the
8 # "License"); you may not use this file except in compliance
9 # with the License. You may obtain a copy of the License at
8ae9d95 @JacquesLeRoux 2d part and end of an effort to remove trailing spaces
JacquesLeRoux authored
10 #
14412f7 @JacquesLeRoux EOL was wrong since ASL2 headers change yesterday. Thanks to Christia…
JacquesLeRoux authored
11 # http://www.apache.org/licenses/LICENSE-2.0
8ae9d95 @JacquesLeRoux 2d part and end of an effort to remove trailing spaces
JacquesLeRoux authored
12 #
14412f7 @JacquesLeRoux EOL was wrong since ASL2 headers change yesterday. Thanks to Christia…
JacquesLeRoux authored
13 # Unless required by applicable law or agreed to in writing,
14 # software distributed under the License is distributed on an
15 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 # KIND, either express or implied. See the License for the
17 # specific language governing permissions and limitations
18 # under the License.
19 #####################################################################
20
21 # location of java executable
22 if [ -f "$JAVA_HOME/bin/java" ]; then
e8ee84e @eigood Fix to handle spaces in paths and options.
eigood authored
23 JAVA="$JAVA_HOME/bin/java"
14412f7 @JacquesLeRoux EOL was wrong since ASL2 headers change yesterday. Thanks to Christia…
JacquesLeRoux authored
24 else
25 JAVA=java
26 fi
27
707f437 @eigood Add framework/base/lib/ant to ant's library path.
eigood authored
28 top="$(cd "$(dirname "$0")"; echo "$PWD")"
08743fe @eigood Modified to not hard-code the ant-launcher version.
eigood authored
29 find_jar() {
81776c6 @lektran Tabs to spaces
lektran authored
30 set -- "$top"/framework/base/lib/ant-launcher-*.jar
31 if [ $# = 1 ] && [ -e "$1" ]; then
32 echo "$1"
33 else
34 echo "Couldn't find ant-launcher.jar" 1>&2
35 exit 1
36 fi
08743fe @eigood Modified to not hard-code the ant-launcher version.
eigood authored
37 }
707f437 @eigood Add framework/base/lib/ant to ant's library path.
eigood authored
38 "$JAVA" -jar "$(find_jar)" -lib "$top/framework/base/lib/ant" "$@"
14412f7 @JacquesLeRoux EOL was wrong since ASL2 headers change yesterday. Thanks to Christia…
JacquesLeRoux authored
39
Something went wrong with that request. Please try again.