Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Ant <exec>, basedir, and Execute failed error=2
Ant <exec>, basedir, and Execute failed error=2 [message #211514] Wed, 03 August 2005 22:58
Eclipse UserFriend
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
Previous Topic:[OT] OSCON
Next Topic:Unable to keybind to Ctrl+1
Goto Forum:
  


Current Time: Sat Nov 02 22:48:30 GMT 2024

Powered by FUDForum. Page generated in 0.02664 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top