wood burning stoves 2.0*
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
Author

Exporting WAR file within RAD or WSAD

voki Nguyen
Greenhorn

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.
Thanks
voki
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exporting WAR file within RAD or WSAD