Orangevolt ANT Tasks » Tasks » Win32 related tasks » win32.registry » Element get
Element getElement import

2.12.2.4.1.  example

build.xml
<?xml version="1.0"?>  
      
  <project basedir="." name="myapp" default="main">
    <taskdef classpath="orangevolt-ant-tasks-1.3.2.jar" resource="com/orangevolt/tools/ant/taskdefs.properties"/>
      
    <target name="main">
          
      <win32.registry root="HKEY_LOCAL_MACHINE" key="SOFTWARE">  
        <get property="test" subKey="Orangevolt" entry="test"/>
        <get property="int" subKey="Orangevolt" entry="int"/>
      </win32.registry>
        
      <echo message="test=${test}, int=${int}"/>
    </target>
  </project>

example output
[echo] test=huhu, int=2147483647