ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn <javajun...@koyuru.com>
Subject Re: apply inputstring ok? was (Re: passing in names of files as arguements)
Date Fri, 15 Aug 2003 00:08:46 GMT
Ok for 1.6 (8/13/03) an inputstring CAN be used with an <apply> attribute, 
BUT the value seems to be used for only the first iteration and not for 
subsequent ones.


> taskdefs/defaults.properties:
> apply=org.apache.tools.ant.taskdefs.Transform
>
> public class Transform extends ExecuteOn
>
> public class ExecuteOn extends ExecTask
>
> public class ExecTask extends Task
> public void setInput(File input) ...
> public void setInputString(String inputString) ...
>
>
> That means, that you can set that value ... it doesn´t imply that
> it´s evaluated ...
> Try it out and write if it works - we have to update the manual then.
>
>
> Jan
>
>> -----Original Message-----

>>
>>
>> Does or will 1.6 support an inputstring attribute for the <apply> task?  
>> I can't use apply without being able to pass in a parameter to be used 
>> as stdin.  This is what I was trying  <exec executable="gpg" os="RH 
>> Linux" inputstring="${the_value}">
>>
>> > Why you don´t use <apply> ?
>> >
>> >
>> > Jan
>> >
>>
>> >> I am trying to so something like this and need to pass in the names 
>> of >> files in my directory one at a time
>>
>> >> <exec executable="gpg" os="RH Linux" inputstring="${the_value}">
>> >> <arg value="--symmetric"/>
>> >> <arg value="--passphrase-fd"/>
>> >> <arg value="0"/>
>> >> <arg value="/home/user/my.txt"/>




-- 
Shawn

Happily using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/

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


Mime
View raw message