ant exec problems with jdk1.2.2



Hi,

I am currently automating a legacy product with Ant1.5.4(cannot use 1.6
due to some dependencies)

My build file:
Code:
-------------------------------------------------------------------

<project name="mytest" default ="test" basedir=".">
<target name="test">
<exec executable="myapp" failonerror="true">
<arg line="-opts"/>
</exec>
</target>
</project>

-------------------------------------------------------------------


This command works fine outside ant. But when I run ant with this file
I get the following errors.

Buildfile: mybuild.xml

test:

BUILD FAILED
file mybuild.xml:4: exec returned: -1

Total time: 1 second

However if I use jdk1.3 or 1.4 then I don't see this problem.

Any help is very much appreciated

Cheers,
Ay

.



Relevant Pages

  • Execute failed in Ant
    ... When I run the executable from a command line, ... When I execute it as part of ant, ... to set environment variables, ...
    (comp.lang.java.programmer)
  • Eclipse: Ant no com.sun.tools.javac.Main ?
    ... I can compile in ANT from the command line. ... I thought my eclipse project was working, but I did an update of my JDK ... on the classpath 'JRE System Libraries' ...
    (comp.lang.java.softwaretools)
  • Re: problem compiling project, classpath in xml ".classpath" ""
    ... will be much easier to sort which jars ... with parameters on the command line. ... to understand the ant build tool better, ... But I can do it without it a parser of that sort of thing. ...
    (comp.lang.java.programmer)
  • Re: problem compiling project, classpath in xml ".classpath" ""
    ... i'm trying to compile a project, it has about 70 jar files. ... with parameters on the command line. ... to understand the ant build tool better, ... Building projects is much easier to do ...
    (comp.lang.java.programmer)
  • Re: Back off jdk 1.5.0_05
    ... The command line ... > parser is hosed. ... Ant does not work. ... Anything with quotes or ...
    (comp.lang.java.programmer)