This documentation is for WSO2 Carbon 4.4.1. View documentation for the latest release.
Page Comparison - Adding and Removing XML Element Touchpoint Actions (v.1 vs v.2) - Carbon 4.3.0 - WSO2 Documentation
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.

Versions Compared

Key

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

A p2 Installable Unit is installed using the facilities provided by touchpoint actions. There are two sets of touchpoints available, which are namely native touchpoints and eclipse touchpoints. In addition to the latter mentioned two touchpoints two new touchpoints actions have been introduced with the Carbon 4.2.0 release, for adding and removing element to and from a XML file. There are touchpoints actions to copy, delete, rename and move files, but there wasn’t any touchpoint action to modify a file. The usage of these touchpoint actions are the same as other touchpoint actions and they can be executed in any p2 engine phase (such as, install, configure, uninstall, unconfigure). 

Touchpoint Formats

To add a touchpoint:

Code Block
org.wso2.carbon.p2.touchpoint.addXMLElement(file:/path/to/xml/file,xpath:xpath/expression,element:<testElement name="sample"/>);

...