ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sony Antony <sony.ant...@gmail.com>
Subject Re: Using shell command in ANT script
Date Wed, 24 Nov 2010 14:38:38 GMT
Put the command inside a shell script and exec the shell script from
your build.xml
--sony

On Wednesday, November 24, 2010, Tim Visher <tim.visher@gmail.com> wrote:
> On Wed, Nov 24, 2010 at 4:48 AM,  <jhoomsharabi@netscape.net> wrote:
>> I want to use the following shell command in my build.xml file
>>
>> ls -l ../../../jobs/ | awk '{ print $9 }' > content.txt
>>
>> is there any way I can use the above mentioned command.
>
> Read up on [Exec](http://ant.apache.org/manual/Tasks/exec.html).
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message