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?
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.