I would love it too. Can we all vote for this or can any ANT committer on this mailing list checkin in this enhancement that Dominique has already written?
--- Shawn Castrianni -----Original Message----- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2008 1:33 PM To: Ant Users List Subject: RE: calling ant with parameters Wow! Me likes it :) OK I see now... I assumed there would have to be some delimiter...just hadn't considered the -- Now something like that would be -super- neat to have... On Thu, 26 Jun 2008, Shawn Castrianni wrote: > Here is the bugzilla report from Dominique. > > https://issues.apache.org/bugzilla/show_bug.cgi?id=30651 > > it answers your questions. > > --- > Shawn Castrianni > > -----Original Message----- > From: Scot P. Floess [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2008 12:56 PM > To: Shawn Castrianni > Cc: Ant Users List > Subject: RE: calling ant with parameters > > So, I am curious... > > How would one deliniate the name of the target(s) vs the name of params to > hand in? > > Granted the -Dname=value can be somewhat verbose... > > Is this $0 $1 notation somehow more obvious? I haven't looked at it...so > just asking "off the cuff." > > So, I tend to agree as well...it'd be nice to hand in params...just trying > to reconcile in my mind how to express this cleanly on the command line to > differentiate between params vs target names... > > On Thu, 26 Jun 2008, Shawn Castrianni wrote: > >> I would love this feature too. It would allow us an easy way to launch any >> java class with application arguments by having a generic launchClass target >> that takes in the name of the class to launch and any app arguments. >> >> Dominique Devienne developed a mechanism for this with $0, $1, etc.. >> properties and submitted the source code to ANT. It is still sitting there >> as a request for ANT to checkin but no one voted on it. >> >> --- >> Shawn Castrianni >> >> >> -----Original Message----- >> From: Guy Catz [mailto:[EMAIL PROTECTED] >> Sent: Thursday, June 26, 2008 11:56 AM >> To: Ant Users List >> Subject: calling ant with parameters >> >> I would like to set a parameter to a ant. Something like this from >> command-line - >> >> ANT compile debug >> ANT compile release >> >> or >> >> ANT testProducts full >> ANT testProducts debugOnly >> >> the target Compile will "catch" the first parameter and will act as needed. >> >> how can I make this to work? how can I call an ANT target with parameters? >> >> Thanks, >> Guy. >> >> ---------------------------------------------------------------------- >> This e-mail, including any attached files, may contain confidential and >> privileged information for the sole use of the intended recipient. Any >> review, use, distribution, or disclosure by others is strictly prohibited. >> If you are not the intended recipient (or authorized to receive information >> for the intended recipient), please contact the sender by reply e-mail and >> delete all copies of this message. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-754-4592 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > Architect Keros http://sourceforge.net/projects/keros > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
