Alexis Agahi wrote:

Hi,

Using/coding win batch files or unix shell to launch phoenix or merlin is quiet boring (especially if you want something able to work on win & unix).

We could use an ant build xml file to launch application.
something like :



What about launching an instance of a kernel (using ant or a command line) using a particular port, and then communicating with the kernel using a JMX client on the assigned port?


Cheers, Steve.



<project name="Launcher" default="options" basedir=".">


<path id="run.class.path">
...
</path>

<target name="options">
        <echo message="Option: start|stop|reconfig"/>
</target>

<target name="start">
<echo message="Starting"/>
<java classname="myapp.launch.class.path" classpath="${classpath}" fork="true" maxmemory="128m">
<arg value="..."/>
<sysproperty key="prop" value="value"/>
<classpath refid="run.class.path" />
</java>
</target>


<target name="stop" >
<echo message="Stopping"/>
<java classname="myapp.stop.class.path" classpath="${classpath}" fork="true" maxmemory="16m">
<arg value="..."/>
<classpath refid="run.class.path" />
</java>
</target>


<target name="stop" >
<echo message="Reconfigure"/>
<java classname="myapp.reconfig.class.path" classpath="${classpath}" fork="true" maxmemory="16m">
<arg value="..."/>
<classpath refid="run.class.path" />
</java>
</target>


</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to