ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soumya sutar <>
Subject Re: AW: How to use ANT as a command shell
Date Wed, 07 Dec 2005 05:46:46 GMT
Hi ,
  I want to know how to use ant font manager.
  Plz help wrote:
  >> Is there any way to cause ANT to
>> 1) always invoke the default target

You could specify a _default_ target since early versions of Ant
(in former time you has to specify the default attribute of project).
This target is performed, if you dont specify an alternative while

If you want to execute some tasks undependent of the target, since
Ant 1.6.0 you could specify the tasks outside of targets (directly
under project).

>> 2) make the command line args available as a set of 
>properties or some form of enumeration

a) use a wrapper to pass the arguments as properties
b) patch Ant

I think Ant 1.7 will have the path :-)

Hhhm ... I think we have discussed exactly this only a few days (maybe 2 weeks)
earlier on this list .... you dont had have a look? You should - and you´ll 
find some nice links ...

>For example, (untested, defensive checks not included), if you 
>had a property file called with a line like this:
>and your build file lines like:
>then you could invoke your build file like:
>ant -Dplatform=sunos
>and the correct copy command would get resolved.

dont forget

you could do , , 
s there.
E.g. invocation of the browser ...

But anyway - Ant was not designed for that, so you´ll have to hack
a little bit (the buildfile).

(pssst: I used Ant as a download manager and a zip tool ;-)


To unsubscribe, e-mail:
For additional commands, e-mail:


 Yahoo! Personals
 Single? There's someone we'd like you to meet.
 Lots of someones, actually. Yahoo! Personals
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message