ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ori Burstein" <oburs...@cisco.com>
Subject Exec fails , please advise
Date Wed, 21 Feb 2001 12:40:29 GMT
Hi,
I'm using Ant 2.0 on windows NT.

When I try to use the follwing code :
<exec executable="Genic.bat -d ${classDst} ejb-jar.xml" >


I get the error listed below.

Any Idea on what should I do ? I tried using the arg tag:

<arg value="-d ${classDst} ejb-jar.xml" />

But the executable didn't get it right ( got it with the " " , which caused it not to run)


Thnx ,
Ori



BUILD FAILED

X:\enm\JavaApp\build.xml:31: Execute failed: java.io.IOException: CreatePro
cess: "Genic.bat -d X:\enm_qos\JavaApp/buildDst/classes ejb-jar.xml" error=2
java.io.IOException: CreateProcess: "Genic.bat -d X:\enm/buildDst/classes ejb-jar.xml" e
rror=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Win32Process.java:66)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:551)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:390)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:247)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:213)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:154)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 3 seconds




Mime
View raw message