This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Problem running .bat script within ant in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Problem running .bat script within ant in Eclipse" Watch "Problem running .bat script within ant in Eclipse" New topic
Author

Problem running .bat script within ant in Eclipse

Eric Fletcher
Ranch Hand

Joined: Oct 26, 2000
Posts: 188
Greetings all,
I'm having an ant-related issue in Eclipse. As part of our build process, we run a .bat file that does some setup via the ant exec task. When I run the build from the command line, no problem, the batch file executes without fail. But when I run the build as an external builder in Eclipse, I get an IOException on the exec task and the build fails with the message "debug error = 2".
I did a quick google search and found a few similar issues but nothing matching this problem exactly. The consensus I found was that "error = 2" meant that the executable in question needs to be in my PATH, but I'm dubious that is my problem since the build runs fine from the command line.
Has anyone seen this behavior from ant/Eclipse before, and might have a resolution? I'm running Eclipse 2.1 and ant 1.5.
Thanks in advance,
E
[ February 19, 2004: Message edited by: Eric Fletcher ]

My theory of evolution is that Darwin was adopted. - Steven Wright
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem running .bat script within ant in Eclipse
 
Similar Threads
problem using junitreport in Eclipse
NullPointer running junit on DOMElementWriter.encode
[Ant + Eclipse R2.0] NullPointerException accessing environment
Ant, Eclipse, Jikes
run a bat in a new dos window