ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan C." <>
Subject Terminate an Ant target
Date Wed, 19 Jan 2011 09:17:18 GMT
I use ant to run some JUnit test. My JUnit test need a http server so
I also start one in my test:

<target name="mytest" depends="build">
<parallel failonany="true" >
      <!-- Start HTTP server here -->
       <java fork="yes"
classname="org.apache.axis2.transport.http.SimpleHTTPServer" >
      <!-- Run JUnit tests here-->
       <junit> ...

The problem I have is that the SimpleHTTPServer is running forever so
even when my JUnit test finish successfully, the ant target does not
terminate. I can only terminate it using Ctrl+C. Since I want this
target to be automated, I would like to find a way to "successfully"
stop the ant target when the junit task finishes.

Any ideas ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message