ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Castrianni <Shawn.Castria...@halliburton.com>
Subject RE: calling ant with parameters
Date Thu, 26 Jun 2008 20:14:17 GMT
Oh, stupid me.  I didn't realize Dominique is a committer.

I think of ANT not only as a cross platform build engine, but a cross platform scripting language.
 antcontrib provides looping concepts and mutable variables that give me everything I need
to do almost anything.  It would just be so much more useful to pass in command line arguments.
 ANT already provides a mechanism to pass in information by specifying -D properties on the
command line.  Therefore, why is it so different to support the same feature with command
line arguments instead?

---
Shawn Castrianni


-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Thursday, June 26, 2008 3:04 PM
To: Ant Users List
Subject: RE: calling ant with parameters


--- Shawn Castrianni
<Shawn.Castrianni@halliburton.com> wrote:

> 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?
>

Dominique himself is a committer, so the issue of the
adoption of this patch is more political than
technical; it's simply a matter of the community
deciding this patch is in harmony with the way they
would like Ant to function.

-Matt

> ---
> Shawn Castrianni
>
>
> -----Original Message-----
> From: Scot P. Floess [mailto:floess@mindspring.com]
> 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:floess@mindspring.com]
> > 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:Guy.catz@waves.com]
> >> 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:
> user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail:
> user-help@ant.apache.org
> >>
> >>
> >
> > 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:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> >
> >
>
> 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:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>





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

----------------------------------------------------------------------
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message