Which version of GlassFish is this? Please use "asadmin create-service"
command if this is 3.x.
Thanks
Sathyan
On 11/18/10 3:11 PM, forums_at_java.net wrote:
> I am not having any luck creating an ANT target to install glassfish as a
> service. I'd appreciate it if somebody could point out the mistake I am
> making. the command window just hangs! I have tried different
> permutation of
> "arg" tags
>
> Thanks!
>
>
>
>
> <target name="create.glassfish.service2"> <echo
> message="glassfish.dir=${glassfish.dir}" />
>
>
>
> <exec dir="${basedir}" executable="${sys32.dir}/sc.exe"
> failonerror="true">
>
>
> <arg value=" create domain1" />
>
>
> <arg value=" binPath= "${glassfish.dir}/lib/appservService.exe
> \"${glassfish.dir}/bin/asadmin.bat start-domain domain1\"
> \"${glassfish.dir}/bin/asadmin.bat stop-domain domain1\""" />
>
>
> <arg value=" start= auto" />
>
>
> <arg value=" DisplayName= "Glassfish_v2.1"" />
>
>
>
>
> </exec> </target>
>
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'forumer']
>
> View Post: http://forums.java.net/node/720615
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>