users@glassfish.java.net

Running asadmin using ant

From: Manish Gupta <Manish.K.Gupta_at_Sun.COM>
Date: Tue, 14 Oct 2008 18:35:09 +0530

I am trying to run "asadmin" command using ant for GF v3. It hangs
during server start. Do I need to do any change?

<?xml version="1.0"?>

<project name="test" basedir="." default="glassfish_v3_setup" >
    <property name="gf_v3_location"
value="D:/GlassFishV3/prelude_build28/glassfishv3-prelude/glassfish" />

    <target name="glassfish_v3_setup">
        <antcall target="start_glassfish_v3"/>
        <antcall target="stop_glassfish_v3"/>
    </target>
    <target name="start_glassfish_v3">
           <java
           jar="${gf_v3_location}/modules/admin-cli.jar"
           fork="true"
>
         <arg value="start-domain"/>
         <arg value="domain1"/>
           </java>
    </target>
    <target name="stop_glassfish_v3">
           <java
           jar="${gf_v3_location}/modules/admin-cli.jar"
           fork="true"
>
         <arg value="stop-domain"/>
           </java>
    </target>
   
</project>

Manish.