Orangevolt ANT Tasks » Tasks » preferences » Element remove
Element removeElement test

2.4.3.1.  Example

The following example removes a entry and a subtree.

<?xml version="1.0"?>  
    
  <project basedir="." name="foo" default="main">
    <taskdef classpath="orangevolt-ant-tasks-1.3.2.jar" resource="com/orangevolt/tools/ant/taskdefs.properties"/>
      
    <target name="main">
      <preferences type="user" path="com/orangevolt/tools/foo">
        <remove name="signature" path="bar"/>  
          
        <remove node="current" path="bar"/>
      </preferences>
    </target>
  </project>