summaryrefslogtreecommitdiff
path: root/src/script/ant
diff options
context:
space:
mode:
authorPeter Reilly <peterreilly@apache.org>2006-10-13 23:38:19 +0000
committerPeter Reilly <peterreilly@apache.org>2006-10-13 23:38:19 +0000
commitaded98e62b41a37a4491afc9ec891c42ffc3ef84 (patch)
treefddb94623dcadf54a617ee3d593fd40cb6b3a192 /src/script/ant
parent875d44b5176806a00d81773b57d0f927a7a59e8e (diff)
downloadant-aded98e62b41a37a4491afc9ec891c42ffc3ef84.tar.gz
allow . /etc/ant.conf if ant_home is /usr/share/ant
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463867 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/script/ant')
-rw-r--r--src/script/ant6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/ant b/src/script/ant
index df3823c80..bcc63c85a 100644
--- a/src/script/ant
+++ b/src/script/ant
@@ -45,8 +45,10 @@ if $no_config ; then
usejikes=$use_jikes_default
else
# load system-wide ant configuration (ONLY if ANT_HOME has NOT been set)
- if [ -z "$ANT_HOME" -a -f "/etc/ant.conf" ] ; then
- . /etc/ant.conf
+ if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then
+ if [ -f "/etc/ant.conf" ] ; then
+ . /etc/ant.conf
+ fi
fi
# load user ant configuration