Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The documentatation for the Cargo Daemon includes:

...

Anchor
gettingStarted
gettingStarted

Getting started with the Java API / ANT tasks / Maven2/Maven3 plugin

As stated before, the Cargo Daemon is also available programmatically:

  • The details of the Java API can be seen on the Javadoc for o.c.c.tools.daemon.DaemonClient
  • To use the Daemon via ANT tasks, simply add the <daemon> tag in the task and use the daemon-start or daemon-stop tasks:

    Code Block
    xml
    xml
    <cargo containerId="tomcat6x" action="daemon-start">
      <zipUrlInstaller
        installURL="http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.zip"
            downloadDir="${basedir}/../../../../core/samples/java/installs"
            extractDir="${catalina.root}">
          </zipUrlInstaller>
      <configuration home="${catalina.base}">
        [...]
      </configuration>
      <daemon>
        <property name="cargo.daemon.handleid" value="test1"/>
        <property name="cargo.daemon.url" value="http://localhost:18000/"/>
        <property name="cargo.daemon.username" value="myuser"/>
        <property name="cargo.daemon.password" value="secret"/>
      </daemon>
    </cargo>
    

...