Please don't call it this way. It is not supported.
Instead, use the exec task with asadmin (full path) as the runnable.
Thanks,
Kedar
Manish Gupta wrote:
> 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.
>
>