Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Info

This feature is only available for standalone local containers (i.e., not for existing local containersembedded containers remote containers nor any kind of deployers).

...

Example using the ANT tasks

Code Block
languagejavahtml/xml
<cargo containerId="@{containerId}" action="@{action}">
  <configuration home="${configuration.home}">
    <configfile file="${basedir}/src/main/jboss5/login-config.xml" todir="conf"/>
    <configfile file="${basedir}/src/main/jboss5/sample-roles.properties" todir="conf/props"/>
    <configfile file="${basedir}/src/main/jboss5/sample-users.properties" todir="conf/props"/>
  </configuration>
</cargo>

...

Code Block
languagehtml/xml
<configuration>
  <container>
    <containerId>jetty7x</containerId>
    <zipUrlInstaller>
      <url>
        http://download.eclipse.org/jetty/7.6.3.v20120416/dist/jetty-distribution-7.6.3.v20120416.zip
      </url>
    </zipUrlInstaller>
  </container>
  <configuration>
    <home>${project.build.directory}/jetty-home</home>
    <properties>
      <cargo.jetty.createContextXml>false</cargo.jetty.createContextXml>
    </properties>
    <configfiles>
      <configfile>
        <file>${project.basedir}/src/main/config/jetty-env.xml</file>
        <todir>webapps/datasource-war/WEB-INF</todir>
      </configfile>
    </configfiles>
  </configuration> 
  <deployables>
    <deployable>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>datasource-war</artifactId>
      <type>war</type>
      <location>datasource-war-extracted</location>
      <properties>
        <context>datasource-war</context>
      </properties>
    </deployable>
  </deployables>
</configuration>