ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Wiesinger <e9125...@student.tuwien.ac.at>
Subject Problem with exec ...
Date Wed, 10 Oct 2001 16:11:56 GMT
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


Mime
View raw message