ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: Run time commands
Date Wed, 17 Apr 2002 15:13:56 GMT
--- Sujan Digumarti <Sujan.Digumarti@india.techspan.com> wrote:
> Command Line input is not possible any ways..
> only thing possible is to redirect the result of a previous exec to
> another exec task 
> 
> for example
> 
> <exec executable="ls" dir="." outputproperty="prop" >
> <arg value="-l" />
> </exec>
> 
> <exec executable="wc -l" dir=".">
> <arg value="${prop}"/>
> </exec>

That's not exactly true. You can exec a shell and pipe within there:

  <exec executable="sh">
    <arg line='-c "ls | wc -l"'/>
  </exec>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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


Mime
View raw message