File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant & Exect in other dir Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Ant & Exect in other dir" Watch "Ant & Exect in other dir" New topic
Author

Ant & Exect in other dir

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 912
Hallo

I try to run whit ant a script(bash) in to a specific directory.For this I use
<exec dir="${dirToRun}" executable="${cmd}" </exec>
My script (${cmd}) has no parameters so I don't need the arg's stuff.
But all ended

[exec] Result: -1

If I remove the dir it works.


SCJP, SCJD, SCWCD
 
 
subject: Ant & Exect in other dir
 
Threads others viewed
Keep running task in the background
Using Ant to launch program in separate window
Ant Script hanging trying to start App server
How to go to a partical directory
How to configure in Ant?
IntelliJ Java IDE