Orangevolt ANT Tasks » Tasks » preferences » Element get
Element getElement remove

2.4.2.1.  Example

The following example queries a Preferences entry and prints the value.

<?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">
        <get name="signature" path="bar" property="signature"/>  
      </preferences>
      <echo message="Signature is ${signature}"/>
    </target>
  </project>