Versions Compared


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



This feature is only available for standalone local containers, and currently doesn't work with the Cargo Daemon.


In some cases, it is necessary to modify XML files of your container. This can be done using Cargo's xmlReplacements option, accessible via the Cargo APIs.


  • The attributeName parameter is optional -if you don't specify it, then Cargo will replace directly the value of the node
  • If the value corresponds to an existing configuration property (such as cargo.hostname for example) then Cargo will reuse it from the configuration
  • Finally, there is another parameter ignoreIfNonExisting which, when set to TRUE, will make the XML replacement tool ignore if that specific XPath doesn't exist in the XML file

Example using the ANT tasks