Try the following scripts.
Li
<!--
========================================================================
Start JRun
========================================================================
-->
<target name="start_jrun">
<java classname="JRun" fork="yes">
<jvmarg value="-Dejipt.classServer.host=127.0.0.1" />
<jvmarg value="-Dejipt.classServer.port=2323" />
<jvmarg value="-Dejipt.homePort=2333" />
<jvmarg
value="-Djava.security.policy=${jrun.home}/lib/jrun.policy" />
<jvmarg value="-Dejipt.home=${jrun.home}" />
<jvmarg value="-Dejipt.ejbDirectory=${jrun.home}/servers/default"
/>
<arg value="-start" />
<arg value="${jrun.home}/servers/default" />
<arg value="jrun.rootDir=${jrun.home}" />
<classpath>
<!-- This is to allow the use of -Dbuild.sysclasspath=only when
starting Ant - Meaning that all jars need to be on the
initial classpath -->
<pathelement path="${java.class.path}" />
<fileset dir="${jrun.home}/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${jrun.home}/lib/ext">
<include name="*.jar" />
</fileset>
<fileset dir="${jrun.home}/servers/lib">
<include name="*.jar" />
</fileset>
</classpath>
</java>
</target>
<!--
========================================================================
Stop JRun
========================================================================
-->
<target name="stop_jrun">
<java classname="JRun" fork="yes">
<jvmarg value="-Dejipt.classServer.host=127.0.0.1" />
<jvmarg value="-Dejipt.classServer.port=2323" />
<jvmarg value="-Dejipt.homePort=2333" />
<jvmarg
value="-Djava.security.policy=${jrun.home}/lib/jrun.policy" />
<jvmarg value="-Dejipt.home=${jrun.home}" />
<jvmarg value="-Dejipt.ejbDirectory=${jrun.home}/servers/default"
/>
<arg value="-stop"/>
<arg value="${jrun.home}/servers/default" />
<arg value="jrun.rootDir=${jrun.home}" />
<classpath>
<!-- This is to allow the use of -Dbuild.sysclasspath=only when
starting Ant - Meaning that all jars need to be on the
initial classpath -->
<pathelement location="${cactus.ant.jar}"/>
<pathelement location="${cactus.jar}"/>
<pathelement location="${junit.jar}"/>
<fileset dir="${jrun.home}/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${jrun.home}/lib/ext">
<include name="*.jar" />
</fileset>
<fileset dir="${jrun.home}/servers/lib">
<include name="*.jar" />
</fileset>
</classpath>
</java>
</target>
-----Original Message-----
From: Rich Coad [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 08, 2001 9:34 AM
To: [EMAIL PROTECTED]
Subject: Jrun, Cactus, and Ant
Does anyone happen to have examples of how to start and stop JRun in an Ant
build script? Thanks.
Rich
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>