ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kashyap Parikh <kpar...@upromise.com>
Subject starting rmiregistry in Ant
Date Thu, 18 Apr 2002 17:08:07 GMT
Hi

I need to start rmiregistry (under <java_home>/bin/rmiregistry.exe) inside
my ant script.

I have following target for that

  <!--
    start rmi registry
    -->
    <target name="startrmiregistry" depends="loadmember">
    	 <echo message="Starting RMI registry on port 1099"/>
        <exec dir="${src.dir}/test/scripts" executable="sh">
            <arg line="startRmiRegistry"/>
        </exec>
        <echo message="RMI registry started"/>
    </target>

and startRmiRegistry looks like this:

------------>
#!/bin/sh

echo "Starting RMI registry on port $port"
rmiregistry 1099 &
sleep 5
echo "RMI registry started"

<------------

This doesn't work because. Ant hangs after starting the rmiregistry.

Is there any other way to do it?

Thanks
Kashyap


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message