users@glassfish.java.net

Re: is there any ant task for GlassFish Embedded edition?

From: Bhavanishankar <bhavanishankara.sapaliga_at_oracle.com>
Date: Thu, 25 Aug 2011 21:04:27 +0530

In you ant build file you should define the taskdefs like these:

<taskdef name="glassfish-embedded-deploy" classname="org.glassfish.ant.embedded.tasks.DeployTask"/>
<taskdef name="glassfish-embedded-undeploy" classname="org.glassfish.ant.embedded.tasks.UndeployTask"/>
<taskdef name="glassfish-embedded-start" classname="org.glassfish.ant.embedded.tasks.StartServerTask"/>
<taskdef name="glassfish-embedded-stop" classname="org.glassfish.ant.embedded.tasks.StopServerTask"/>
<taskdef name="glassfish-embedded-admin" classname="org.glassfish.ant.embedded.tasks.AdminTask"/>

You can refer https://svn.java.net/svn/glassfish~svn/trunk/v2/appserv-tests/devtests/embedded/config/common.xml for little more details...

_Bhavani.

On 08/25/2011 08:53 PM, Bhavanishankar wrote:
> Hi,
>
> Yes, it is available. You can use any 3.1 or 3.1.1 or 3.2 version
> available at
> http://maven.glassfish.org/content/groups/glassfish/org/glassfish/ant-tasks/
>
> You need to use it like a how you normally use ANT tasks. You need to
> keep the glassfish embedded jar (all|web|static-shell.jar) in your
> classpath.
>
> Bhavani.
>
> On 08/25/2011 08:21 PM, Sarah kho wrote:
>> I am looking for ANT task to start, stop sand deploy application into
>> GlassFish 3.1 embedded edition. Is there anything like that available
>> as part of the project, any documentation?
>>
>>
>> Thanks.
>

-- 
Sun, an Oracle Company