Ant <exec>, basedir, and Execute failed error=2 [message #211514] |
Wed, 03 August 2005 22:58 |
Eclipse User |
|
|
|
Originally posted by: daiphoenixNO.SPAMlycos.com
Dunno if I should post here, or in another place more Ant related, but
here goes:
Ok, so I had an Eclipse simple project with the following ant build.xml
snippet :
<target name="Run" >
<exec executable="foo.exe" />
</target>
When I run the target, I now get a "Execute failed: java.io.IOException:
CreateProcess: foo.exe error=2" . The file is there, the basedir is
correcly set, and if I use
<exec executable="${basedir}/foo.exe" />
or even
<exec executable="foo.exe" resolveexecutable="true" />
it works.
But the weird thing is that is used to work with just <exec
executable="foo.exe" /> . I dont know what happended, I just did some
irrelevant stuff (like creating an ant project builder) and it stopped
working, with any xml file.
Right now I dont even know wich of the two behaviours is the correct
one, since the ant manual page for exec doesnt explain the search
semantics when resolveexecutable="false" (which is the default).
So, isn't exec supposed to search in the basedir when given a relative
path? If it is, why isnt it working?
--
Bruno Medeiros
Computer Science/Engineering student
|
|
|
Powered by
FUDForum. Page generated in 0.02720 seconds