You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "David J. B. Hollis" <dh...@AandOConsultancy.ltd.uk> on 2008/05/19 08:30:33 UTC
antrc & ant.conf files
Hi, All
I apologise if I'm asking an obvious question!
I'm running Ant 1.6.5, which was installed as part of Apple's XCode 2
on Mac OS X.4.
I'm using Ant in conjunction with DITA and DITA's Toolkit.
I'm more of a Mac User, and still learning about the BSD under-
pinnings! That should explain a lot! ;-)
I understand that ~/.antrc and ~/.ant/ant.conf are parsed when Ant is
called from the command line. I also understand that these files can
include ANT_OPTS and ANT_ARGS parameters.
Can these files also include a definition for ANT_HOME?
Could someone please confirm the correct syntax for these items.
The things I want to do are:
1. Set ANT_HOME
2. Set a memory requirement for ANT_OPTS
3. Use the -lib property to point to the DITA Toolkit lib, and set a
property known as 'DITA_DIR'.
MTIA
David
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: antrc & ant.conf files
Posted by Ja...@rzf.fin-nrw.de.
> I understand that ~/.antrc and ~/.ant/ant.conf are parsed when Ant is
> called from the command line. I also understand that these files can
> include ANT_OPTS and ANT_ARGS parameters.
These file are executed by the wrapper scripts.
Therefore you can have a look into them to see what exactly you can do.
# load system-wide ant configuration (ONLY if ANT_HOME has NOT been
set)
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
if [ -f "$HOME/.ant/ant.conf" ] ; then
. $HOME/.ant/ant.conf
fi
if [ -f "$HOME/.antrc" ] ; then
. "$HOME/.antrc"
fi
So i think you could also set ANT_HOME (btw - have you tried that?)
> Can these files also include a definition for ANT_HOME?
I think it should - just try that out.
> Could someone please confirm the correct syntax for these items.
> The things I want to do are:
> 1. Set ANT_HOME
see above
> 2. Set a memory requirement for ANT_OPTS
possible (and intented)
> 3. Use the -lib property to point to the DITA Toolkit lib, and set a
> property known as 'DITA_DIR'.
possible, set ANT_ARGS
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org