File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Exporting WAR file within RAD or WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Exporting WAR file within RAD or WSAD" Watch "Exporting WAR file within RAD or WSAD" New topic

Exporting WAR file within RAD or WSAD

voki Nguyen

Joined: Jan 24, 2006
Posts: 2
Hi all,

Could anyone please tell me how to export a war file that automatically bundles the Java utility project(s) from WSAD or RAD?

For example, I've got a HelloWorldPortlet & a HelloWorldUtil project in WSAD or RAD. The HelloWorldPortlet is configured to depend on HelloWorldUtil. Everything is fine if I export the EAR file that contains both projects. However, I want to export the HelloWorldPortlet as a war file that automatically bundles HelloWorldUtil in a WEB-INF/lib folder.

I know this could be done either by Maven or Ant, but is there a way to do it with built-in plugins from RAD or WSAD?

Any help is appreciated.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

You are correct, without plugins/maven/ant, WSAD/RAD will only export utility jar files with EARs, but not with WARs.

The ability to accomplish this is more a function of Eclipse than it is a function of WSAD/RAD. If you right click on a project in Eclipse, there is "Builders" sub-section. There you can add an Ant build script to accomplish what you'd like.

I don't believe this requires a plugin. BTW, its a good practice to write external build scripts (such as those that are run from command line), entirely in maven/ant, rather than relying on WSAD/RAD's build process in any way. If written well, they will provide much benefit for the lifespan of the project.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: Exporting WAR file within RAD or WSAD
It's not a secret anymore!