Building a portlet war with ant is relatively simple, but you need to know a little about properties and deployment configurations. Building a portlet war on the command line actually uses your Portal Deployment configuration configured for your project. If your deployment configuration is set for auto deploy, your application will be deployed when you build from the command line. You do not need a portal server to have a portal deployment configuration, just uncheck the auto deploy option.
- Change Directory to the \WebContent.
- Create a buildportlet.properties file in this directory and set these properties
dotBowstreet=. ../.bowstreet You are specifying the full name and path to the .bowstreet file as it exists relative to projectDeploy.xml file.
wpf.config.dir= You can move your deployment configurations from the default workspace save location to a more convenient path. By default deployment configurations are in the \.metadata\.plugins\com.bowstreet.designer.webapp\deploymentconfigs directory.
- From the command line:
ant -f projectDeploy.xml portalConfig -propertyfile buildportlet.properties
- A portlet should be built to the path set in your deployment configuration.