Read the documentation for <exec>. 

The <arg> element allow you to pass things as "line" (no interpretation) 
"value" (a non interpreted argument) "file" (a string interpreted as a file, 
and converted appropriatelly), etc. Ifyou just pass a "line" how do you expect 
the code to know what you mean by it?

The same apply for <java>.

Jose Alberto

----- Original Message ----- 
From: "Gerhard Wiesinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2001 5:11 PM
Subject: Problem with exec ...


> Hello!
> 
> I want to automate a build and need some external programs with exec.
> 
> I have some properties from the command line (NT, Unix) which are defined
> with e.g. with -Dpath=c:\build
> 
> Then I want to add some suffix:
> <property name="src.dir" value="${path}/${src}"/>
> 
> src.dir is now c:\build/src (with a slash!)
> 
> Then I want to execute an external program: e.g.
> 
> <exec dir="${jidl.dir}" executable="jidl">
>    <arg line="--output-dir ${dst.java.dir} --tie ${src.dir}/my.idl"/>
> </exec>
> 
> The problem is that ${src.dir}/my.idl e.g. c:\build/src/my.idl is not
> converted to NT Style names with \. How can this be done?
> 
> (I want c:\build\src\my.idl to have the same build file on NT and Unix).
> 
> Any ideas?
> 
> Ciao,
> Gerhard
> 

Reply via email to