ant-user mailing list archives

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

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"/>
        <echo message="RMI registry started"/>

and startRmiRegistry looks like this:


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?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message