o To create a new webapp structure, simply run ant new o To build a webapp, simply run: ant build -Dwebapp=XXX ... Where XXX is the name of the webapp you want to build. After the build is finished, the fully-built war file can be found in the dist directory. You may deploy this file to any servlet container. For example: ant build -Dwebapp=sandbox o To build a portlet webapp, simply run: ant build-portlet You can use the 'container' system property to target a specific container, e.g. '-Dcontainer=exo'. Supported containers are exo, gridsphere, liferay-3.6.1, jboss-portal-2.0, jboss-portal-2.2 and jetspeed2. For IBM WebSphere Portal 5.1 and Apache Pluto 1.0.1, no container property is required. For example: ant build-portlet -Dcontainer=jboss-portal-2.2 +=============================================================+ | -- Create a new web application -- | +=============================================================+ Creating '${new.app.location}/${new.app.name}' web application... +=============================================================================+ | -- Your Web Application was created successfully! -- | | | | Or if you have changed the default web app location: | | > ant build -Dwebapp=${new.app.name} -Dwebapplocation=${new.app.location} | | | +=============================================================================+ +=============================================================================+ | -- Your Web Application was created successfully! -- | | | | Now you should be able to build your application with: | | > ant build -Dwebapp=${new.app.name} | | | +=============================================================================+