ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: cvs commit: ant/src/script ant
Date Thu, 05 Feb 2004 13:32:12 GMT
On 5 Feb 2004, <bodewig@apache.org> wrote:

>   * a --noconfig switch that suppresses sourcing of additional
>     configuration files.

this is not the full story, there now also is

  echo '  --help, --h            print this message and ant help'
  echo '  --noconfig             suppress sourcing of /etc/ant.conf,'
  echo '                         $HOME/.ant/ant.conf, and $HOME/.antrc'
  echo '                         configuration files'
  echo '  --usejikes             enable use of jikes by default, unless'
  echo '                         set explicitly in configuration files'
  echo '  --execdebug            print ant exec line generated by this'
  echo '                         launch script'

which we may want to discard or keep (I personally don't have a
strong opinon here).

Also the script will now source ~/.ant/ant.conf if present -
again, we can make this rpm_mode specific or drop completely.  I'd
like to keep it.

Finally the script has to do a lot of stuff to parse the command line
and plug it back together again as it now wants to parse some options
itself (and hide them from Ant).  This is not trivial to do in way
that works on all Bourne shell dialects out there, in particular with
command line arguments that contain spaces.

I've tested the new script on Linux, FreeBSD[1], MacOS X and Solaris,
using ANT_HOME with a space in it and a build file with a space in
it - it worked.  Things I couldn't test but that should be tested
are Korn shell based systems (AIX or OpenBSD) as well as Cygwin.

Cygwin users may note that ANT_LIB now runs through cygpath, I've no
idea whether this is actually needed and fixes a bug or causes
problems or is completely insignificant at all.

Stefan

Footnotes: 
[1]  I used minotaur as my testbed and accidently used the Ant 1.5.4
     installation on it first - this one failed for
     ant -f "sand box"/test.xml while the new script works.  I haven't
     tested the script of 1.6.0.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message