• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exporting WAR file within RAD or WSAD

 
voki Nguyen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic