File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying EAR on WAS using ANT

 
Pratik Lohia
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pratik Lohia
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess I am shouting no more...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
 
Jim Knatcher
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IBM provides a "wsInstallApp" task.
 
Ryan Zezeski
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic