You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Martin M <ma...@qfs.de> on 2007/02/12 11:08:04 UTC
using * in arg of exec task
Hi all,
I would like to call a helper script in my ant-task, but somehow I dont't
get it running.
I would like to call
"myCript /path/to/classes/Class*.class
/path/to/otherClasses/ClassImpl*.class"
I have defined this exec task:
<exec executable="myCrypt" dir=".">
<arg line="path/to/classes/Class*.class
/path/to/otherClasses/ClassImpl*.class"/>
</exec>
Running the task, ant is complaining that the classes don't exist.
I also tried to escape the '*' by \, $, and *, but nothing worked.
How do I define such a task in ant?
Thanks in advance!
Regards,
Martin
--
View this message in context: http://www.nabble.com/using-*-in-arg-of-exec-task-tf3212640.html#a8921590
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: AW: using * in arg of exec task
Posted by Martin M <ma...@qfs.de>.
Hello Jan,
thank you for your response.
As I don't want to use so many filesets, I changed my task to make the shell
as executable and call the command as argument. This approach also works for
me.
So my task looks like this:
<exec executable="sh">
<arg line="-c myCrypt path/to/classes/Class*.class
/path/to/otherClasses/ClassImpl*.class"/>
</exec>
As you've already mentioned the command above is working due to the *
resolution.
Regards,
Martin
Jan.Materne wrote:
>
>
>
>>-----Ursprüngliche Nachricht-----
>>Von: Martin M [mailto:martin4@qfs.de]
>>Gesendet: Montag, 12. Februar 2007 11:08
>>An: user@ant.apache.org
>>Betreff: using * in arg of exec task
>>
>>
>>Hi all,
>>
>>I would like to call a helper script in my ant-task, but
>>somehow I dont't
>>get it running.
>>
>>I would like to call
>>"myCript /path/to/classes/Class*.class
>>/path/to/otherClasses/ClassImpl*.class"
>>
>>I have defined this exec task:
>>
>><exec executable="myCrypt" dir=".">
>><arg line="path/to/classes/Class*.class
>>/path/to/otherClasses/ClassImpl*.class"/>
>></exec>
>>
>>Running the task, ant is complaining that the classes don't exist.
>>I also tried to escape the '*' by \, $, and *, but nothing worked.
>>
>>How do I define such a task in ant?
>>
>>Thanks in advance!
>>
>>Regards,
>>Martin
>>--
>>View this message in context:
>>http://www.nabble.com/using-*-in-arg-of-exec-task-tf3212640.htm
>>l#a8921590
>>Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
--
View this message in context: http://www.nabble.com/using-*-in-arg-of-exec-task-tf3212640.html#a8925759
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org