Apache Struts 2 Documentation > Home > FAQs > How to build the portlet WAR for a specific portal server
Added by Rainer Hermanns, last edited by Ted Husted on Jul 22, 2006  (view change)
Build instructions

Budiling a portlet WAR, step by step.

  • Run ant from the webapp project directory
  • cd to webapps directory
  • To build a portlet webapp, run: ant build-portlet
  • Use the container system property to target a specific container, e.g. '-Dcontainer=exo'.
    • Several containers are supported.
    • Example command:
      • ant build-portlet \-Dcontainer=jboss-portal-2.2
        
  • Check the etc/yourcontainer directory for a README file. If available, check for further instructions.
  • Deploy the WAR to your portal server
The referenced Ant bjuild file is not yet available for Struts 2