Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background running a Java application

Status
Not open for further replies.

thekobbler

Programmer
Joined
Oct 30, 2002
Messages
113
Location
GB
Hi guys,

I'm using Ant to extract files from CVS, Compile, and then use JUnit/JFCUnit to test the application, and then test (using JFCUnit) the User interface. My application requires a test harness (to act as a server to my application) to be started as a separate process, so I thought that's simple I'll simply start it using the <java> task, and set fork=&quot;true&quot; to make it run in a separate JVM.

My problem is that the <java> task isn't completed until the Java application (i.e. the test harness) has been completed/closed, but it must be running at the same time as my tests. I would therefore like to &quot;run&quot; the test harness in background mode, so ANT can then continue to execute the next ant-targets that start the JUnit/JFCUnit tests.

Can anyone help?
 
Cheers phosy,

the second link seems to provide a good solution. As usual with these things there are usual workarounds ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top