Author: reinhard
Date: Mon Mar 21 10:10:55 2005
New Revision: 158494

URL: http://svn.apache.org/viewcvs?view=rev&rev=158494
Log:
move running and stopping the container in its own script

Modified:
    cocoon/trunk/tools/external-project-build/generic-build.xml

Modified: cocoon/trunk/tools/external-project-build/generic-build.xml
URL: 
http://svn.apache.org/viewcvs/cocoon/trunk/tools/external-project-build/generic-build.xml?view=diff&r1=158493&r2=158494
==============================================================================
--- cocoon/trunk/tools/external-project-build/generic-build.xml (original)
+++ cocoon/trunk/tools/external-project-build/generic-build.xml Mon Mar 21 
10:10:55 2005
@@ -131,22 +131,18 @@
 
     <target name="cocoon:core-container" depends="cocoon:before-container">
         <ant antfile="${cocoon.rep.container.dir}/container-build.xml"
-            target="cocoon:create-${cocoon.container.version}" 
inheritall="true"/>
+            target="cocoon:create" inheritall="true"/>
     </target>
 
        <!-- TODO: run and stop have to support *nix -->
     <target name="cocoon:core-run" depends="cocoon:before-run">
-        <exec 
executable="${cocoon.build.container.dir}/${cocoon.container.run.win}" 
spawn="true">
-          <env key="CATALINA_HOME" value="${cocoon.build.container.dir}"/>
-          <arg value="start"/>
-        </exec>
+        <ant antfile="${cocoon.rep.container.dir}/container-build.xml"
+            target="cocoon:run" inheritall="true"/>      
     </target>
 
     <target name="cocoon:core-stop" depends="cocoon:init, cocoon:before-stop">
-        <exec 
executable="${cocoon.build.container.dir}/${cocoon.container.stop.win}" 
spawn="true">
-          <env key="CATALINA_HOME" value="${cocoon.build.container.dir}"/>
-          <arg value="start"/>
-        </exec>
+        <ant antfile="${cocoon.rep.container.dir}/container-build.xml"
+            target="cocoon:stop" inheritall="true"/>
     </target>
 
     <target name="cocoon:core-compile" depends="cocoon:before-compile">


Reply via email to