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 :


<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]

Reply via email to