users@glassfish.java.net

ANT target to install glassfish as a service?

From: <forums_at_java.net>
Date: Thu, 18 Nov 2010 15:11:17 -0800

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