<project> <property name="property" value="zzz" /> <echo message="aaa ${property}" /> </project>
When invoked without parameters it prints out: "aaa zzz" When invoked as "nant -D:property=value" it prints out "aaa value". The command line arguments override global property definitions. Hope it helps, Jarek ----- Original Message ----- From: "Bonnett, Evan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 31, 2004 10:10 PM Subject: [Nant-users] Command Line args Help > > > > > Sorry, sent this under a bad subject line... > > > Does anyone have an example of a command line arg that is passed in with the > call to nant and how to get it into a property? > > > > Evan A. Bonnett > Reynolds and Reynolds, IT > > > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users