On UNIX the wildcard is evaluated by the shell. You are bypassing the 
shell by executing the process directly in your example. Check out the 
apply task (http://ant.apache.org/manual/CoreTasks/apply.html).

-- 
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Vladimir Bezugliy" <[EMAIL PROTECTED]> wrote on 05/06/2005 01:46:33 AM:

> I have next target in my build.xml
> 
> <target name="idl2java">
>    <exec executable="idl2java">
>       <arg line="-root_dir ${root}"/>
>       <arg line="-package my.package"/>
>       <arg file="${idl}/*.idl"/>
>    </exec>
> </target>
> 
> If I call this target in Windoes - all fork fine.But if I try to 
> call this target in Unix, then I get next error
> idl2java:
>      [exec] IDL preprocessor:cannot open file 
"/home/user/root/idl/*.idl"
>      [exec] 1 error
> 
> I do not understand why it does not work....
> 
> If I call idl2java from command line in Unix 
>    > idl2java -root_dir gen -package my.package idl/*.idl
> then all work fine too. 
> 
> PS.
> Excuse me for my previous post.

Reply via email to