ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Irfan Sayed <irfu.sa...@gmail.com>
Subject changing directory in Ant
Date Mon, 29 Mar 2010 07:49:52 GMT
Hi all,

i need to change the directory while executing build.xml. i executed
following code.

<target name="dirchange">
<exec executable="cmd">
                        <arg value="/c"/>
                        <arg value="cd"/>
                        <arg value="/tmp"/>
</exec>
</target>

but it is failing with the following error.

Buildfile: build.xml
dirchange:
BUILD FAILED
/home/y/var/builds/workspace/DNA_Renaissance_Aggs/V08/trunk/build.xml:33:
Execute failed: java.io.IOException: Cannot run program "cmd":
java.io.IOException: error=2, No such file or directory
Total time: 0 seconds
please advice

Regards
Irfan.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message