Orangevolt ANT Tasks » Tasks » preferences » Set Preferences data
Element stringElement get

2.4.1.8.  Example

Set Preferences data
<?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">
        <string name="workingDir" value="${app.home}/"/>
        <string name="lru">
          ${app.home}/examples/test.bar,${user.home}/examples/trial.bar
        </string>
        <bytearray name="signature" path="bar">  
            1, 127, 34, 5, 33 <!-- heading/trailing spaces will be removed -->
        </bytearray>
        <bytearray name="sig2" path="bar/signatures" radix="16" separator=":">  
            01:7F:0A:5:3:7
        </bytearray>
        <int name="listeners" path="current/version" value="0"/>
      </preferences>
    </target>
  </project>