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 start app in a new console window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "start app in a new console window" Watch "start app in a new console window" New topic
Author

start app in a new console window

Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
I have an ant build script that compiles all the classes, makes a jar file and launches a Java Swing application using the 'java' action. The problem is that after the application launches, that console window is 'locked' by ant and the build script does not end until i end the application.

Is there any way in which i can start the app in a new window or in the background like 'javaw' and free up the current console window.
Posted is my build script.

tried posting my build script...but keep getting an error...
[ August 17, 2005: Message edited by: Bear Bibeault ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at the spawn and fork attributes of the <java /> task. You should find your answer there.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
Thanks Paul!!

had fork = true, but did not have spawn there.
Put spawn in and it works now!!!

Thanks once again!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: start app in a new console window
 
Similar Threads
Problem in runnig sample code please help
Ant and Eclipse
launching jar from script.bat
Ant not working in Eclipse
war file