You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sitaram Krishnamurthy <ks...@aalayance.com> on 2003/02/05 17:41:35 UTC

Problem using Resin 2.1.6

The "sleep" target never gets executed if I'm using Resin 2.16. It works
fine when I'm using Resin 2.05.
Resin 2.1.6 starts and just stays forever but Resin 2.0.5 doesn't have any
problems.

Can anyone help?

-Sitaram


    <target name="sleep">
        <echo message = "In the target sleep "/>
        <script language="javascript"> <![CDATA[
            importPackage(java.util);
            importPackage(java.lang);
            java.lang.System.out.print("Sleeping... (5 sec)");
            java.lang.Thread.sleep(5000);
            java.lang.System.out.println("Waking...");
            ]]>
        </script>
    </target>

    <target name="StartStopServer">
        <antcall target="CheckServerTypeAndStartServer"/>
        <antcall target="sleep"/>
        <antcall target="CheckServerTypeAndStopServer"/>
    </target>