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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to