aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Deploying EAR on WAS using ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Deploying EAR on WAS using ANT" Watch "Deploying EAR on WAS using ANT" New topic
Author

Deploying EAR on WAS using ANT

Pratik Lohia
Ranch Hand

Joined: May 05, 2005
Posts: 88
I need to automate the process of deploying my EAR on WAS using ANT. Any tasks to do so.
ANT 1.6.2 and WAS 5.1
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Ant covers the basics you'll need - those universal tasks like copying, jaring, compiling etc. But WAS being WAS you will need to use the extra taskdefs IBM supply with WAS. Check the docs in the InfoCenter if you haven't already. You'll have to learn about WSAdmin too, if you don't already know how to use it.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Pratik Lohia
Ranch Hand

Joined: May 05, 2005
Posts: 88
I already get my EAR using ANT. But thereafter I deploy the EAR on WAS manually using the WAS AdminConsole. This is wat I need to automate
Franck Smith
Greenhorn

Joined: Dec 21, 2005
Posts: 18
Hi,

I know that there is a maven plugin which let you manage was 5.1
So if decide to migrate to maven
http://maven-plugins.sourceforge.net/maven-was5-plugin/properties.html
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
232

Pratik,
I'm not sure if IBM offers a custom Ant task for this or not. If not, you could automate deployment with a jacl/wsadmin script and have Ant call that.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
232

Pratik and Franck,
When you get a chance, can you edit your display name so it isn't in all caps.

On the Internet, all caps is viewed as shouting - certainly not what you are intending!

Thanks,
Jeanne
Pratik Lohia
Ranch Hand

Joined: May 05, 2005
Posts: 88
Guess I am shouting no more...
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
232

Thanks Pratik
Jim Knatcher
Greenhorn

Joined: Dec 21, 2005
Posts: 3
IBM provides a "wsInstallApp" task.
Ryan Zezeski
Greenhorn

Joined: Mar 13, 2005
Posts: 29
You could also write a jacl script to install the ear and then have ant call a batch or shell script that executes the jacl script. It sounds like a lot of work but I find it better than the ant task. Plus you will have to go this route if you ever plan on using WAS ND and want an automated process to deploy your ear. You could also use Jython instead of jacl.


Java has 99 problems but a pointer ain't one
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying EAR on WAS using ANT