You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thod Nguyen <tn...@yahoo.com> on 2006/03/27 19:32:20 UTC
how to return a String object in custom Ant
I'm writing a custom Ant and i would like to return a
String object in the void execute() method, what is
the best way to do this?
Thanks much
T.N.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to process multiple files using exec
Posted by murthy gandikota <mu...@yahoo.com>.
Many thanks, Jeff.
Jeffrey E Care <ca...@us.ibm.com> wrote:
use apply, not exec
____________________________________________________________________________________________ Jeffrey E. (Jeff) Care carej@us.ibm.com
IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer
murthy gandikota <mu...@yahoo.com> wrote on 03/27/2006 03:36:43 PM:
> Hi
> I have a tar xvf task to run on all the files in a directory. Here
> is my ant script:
>
> <exec append="true" executable="tar" dir="${a}/help" failonerror="true">
> <arg line="xvf acurate_help.tar" />
> </exec>
>
> How can I extend it to all the files found under ${a}/help?
>
> TIA
> Murthy
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Re: How to process multiple files using exec
Posted by Jeffrey E Care <ca...@us.ibm.com>.
use apply, not exec
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
carej@us.ibm.com
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
murthy gandikota <mu...@yahoo.com> wrote on 03/27/2006 03:36:43
PM:
> Hi
> I have a tar xvf task to run on all the files in a directory. Here
> is my ant script:
>
> <exec append="true" executable="tar" dir="${a}/help" failonerror="true">
> <arg line="xvf acurate_help.tar" />
> </exec>
>
> How can I extend it to all the files found under ${a}/help?
>
> TIA
> Murthy
>
>
> ---------------------------------
> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
How to process multiple files using exec
Posted by murthy gandikota <mu...@yahoo.com>.
Hi
I have a tar xvf task to run on all the files in a directory. Here is my ant script:
<exec append="true" executable="tar" dir="${a}/help" failonerror="true">
<arg line="xvf acurate_help.tar" />
</exec>
How can I extend it to all the files found under ${a}/help?
TIA
Murthy
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Re: how to return a String object in custom Ant
Posted by Thod Nguyen <tn...@yahoo.com>.
Got it...
Thanks everyone ...
--- "Ivan \"Rambius\" Ivanov"
<ra...@yahoo.com> wrote:
> Hello,
>
> --- Thod Nguyen <tn...@yahoo.com> wrote:
>
> > I'm writing a custom Ant and i would like to
> return
> > a
> > String object in the void execute() method, what
> is
> > the best way to do this?
>
> I suppose you mean to return it to the build process
> from your custom Ant task. In this case, you may use
>
> Project project = getProject();
> project.setProperty(name, value);
>
> Regards
> Ivan
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to return a String object in custom Ant
Posted by "Ivan \"Rambius\" Ivanov" <ra...@yahoo.com>.
Hello,
--- Thod Nguyen <tn...@yahoo.com> wrote:
> I'm writing a custom Ant and i would like to return
> a
> String object in the void execute() method, what is
> the best way to do this?
I suppose you mean to return it to the build process
from your custom Ant task. In this case, you may use
Project project = getProject();
project.setProperty(name, value);
Regards
Ivan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to return a String object in custom Ant
Posted by Jeffrey E Care <ca...@us.ibm.com>.
execute returns void; i think what you want to do is set a property
____________________________________________________________________________________________
Jeffrey E. (Jeff) Care
carej@us.ibm.com
IBM WebSphere Application Server Development
WAS Pyxis Lead Release Engineer
Thod Nguyen <tn...@yahoo.com> wrote on 03/27/2006 12:32:20 PM:
> I'm writing a custom Ant and i would like to return a
> String object in the void execute() method, what is
> the best way to do this?
>
> Thanks much
> T.N.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>