ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Liechti" <>
Subject How to call an ant script with parameters?
Date Thu, 27 Oct 2005 09:20:33 GMT
Hi all
I didnt find an answer to this in the documentaion or in the mailinglist

To run a ant script, I have to call it like this:

Ant -buildfile MyAntScript.xml MyTarget

I call my ant script using batch files on windows. Now I need to set
some parameters to the ant script dynamicly, like:

Ant -buildfile MyAntScript.xml MyTarget MyParameter1 MyParameter2

And so on. How do I access such parameters inside of MyAntScript.xml? Is
it possible?
Cause of ant's syntax, MyParameter1 and 2 would be another target... :/


This message may contain legally privileged or confidential 
information and is therefore addressed to the named persons only. 
The recipient should inform the sender and delete this message, 
if he/she is not named as addressee. 
The sender disclaims any and all liability for the integrity 
and punctuality of this message. 
The sender has activated an automatic virus scanning by 
Messagelabs, but does not guarantee the virus free 
transmission of this message.

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

View raw message