You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sayed, Irfan (Irfan)" <is...@avaya.com> on 2007/07/17 09:39:21 UTC

Unix command in build .xml

Hi All,
 
I need to execute UNIX command (for example ls -l) in Ant's build.xml
file. 
 
Can somebody please help me in this case. Do I need to write task for
this or anything else.
 
Please help.
 
Regards
Irfan.
 

Re: Unix command in build .xml

Posted by Sunil Prabhakaran <su...@gmail.com>.
try <exec>

regards
Sunil Prabhakaran

On 7/17/07, Sayed, Irfan (Irfan) <is...@avaya.com> wrote:
> Hi All,
>
> I need to execute UNIX command (for example ls -l) in Ant's build.xml
> file.
>
> Can somebody please help me in this case. Do I need to write task for
> this or anything else.
>
> Please help.
>
> Regards
> Irfan.
>
>

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


RE: Unix command in build .xml

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.
 
Hi,

you may use the <shellscript> from antcontrib

http://ant-contrib.sourceforge.net/

but beware =

use version 1.0b2 instead of 1.0b3, for me some
tasks didn't work anymore with 1.0b3, there seem
to be some bugs in that release.

Regards, Gilbert


-----Original Message-----
From: Sayed, Irfan (Irfan) [mailto:isayed@avaya.com] 
Sent: Tuesday, July 17, 2007 9:39 AM
To: user@ant.apache.org
Subject: Unix command in build .xml

Hi All,
 
I need to execute UNIX command (for example ls -l) in Ant's build.xml
file. 
 
Can somebody please help me in this case. Do I need to write task for
this or anything else.
 
Please help.
 
Regards
Irfan.
 

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