You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by ps...@apache.org on 2010/03/18 13:24:45 UTC

svn commit: r924743 - /incubator/wookie/trunk/ant/ivy-java-common.xml

Author: psharples
Date: Thu Mar 18 12:24:44 2010
New Revision: 924743

URL: http://svn.apache.org/viewvc?rev=924743&view=rev
Log:
Added stopserver task. Fix for See WOOKIE-129.

Modified:
    incubator/wookie/trunk/ant/ivy-java-common.xml

Modified: incubator/wookie/trunk/ant/ivy-java-common.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/ant/ivy-java-common.xml?rev=924743&r1=924742&r2=924743&view=diff
==============================================================================
--- incubator/wookie/trunk/ant/ivy-java-common.xml (original)
+++ incubator/wookie/trunk/ant/ivy-java-common.xml Thu Mar 18 12:24:44 2010
@@ -110,7 +110,7 @@
 	<target name="post-compile-core" description="Run after compile-core. Intended to be overridden if your project needs any post compile processing"/>
     	
     <target name="run" depends="compile-core" description="--> compile and run the project">
-		<java classname="${main.class.name}"
+		<java classname="${main.start.class.name}"
         	classpathref="run.path.id"
             fork="true"
             failonerror="true">
@@ -118,6 +118,16 @@
         	<arg line="${run.args}"/>
         </java>    	
     </target>
+	
+	<target name="stopserver" depends="init" description="--> stop the running server instance">
+		<java classname="${main.stop.class.name}"
+	        classpathref="run.path.id"
+	        fork="true"
+	        failonerror="true">
+	        <jvmarg line="${jvmargs}"/>
+	        <arg line="${run.args}"/>
+	       </java>    	    	
+	</target>	
     
     <target name="jar" depends="clean-dist, compile-core" description="--> make a jar file for this project">
     	<mkdir dir="${dist.dir}"/>