Orangevolt ANT Tasks » Tasks » Win32 related tasks
ExampleElement exists

2.12.2.  win32.registry

win32.registry lets you access the Windows registry out of Ant.

This task's functionality is based on the Orangevolt Win32 for Java library which provides access to common Windows functionality. Orangevolt Win32 for Java is included in the orangevolt-ant-tasks-1.3.2.jar. The library is also available as separate package at Orangevolt Win32 for Java Homepage.

This feature is especially useful for install/unistall your java application in a windows conform way. Furthermore it can beused to retrieve almost any information you need out of the registry.

win32.registry provides sub elements to any job to to.

Properties

Name Description Required
root root is the name of the registry part to access. Valid values are
  • HKEY_CLASSES_ROOT
  • HKEY_CURRENT_USER
  • HKEY_LOCAL_MACHINE
  • HKEY_USERS
yes
key key is the path of a registry subtree to access. You should use this attribute when accessing multiple entries to save typing the same path again and again. no

Task win32.registry works only on Win32 compliant systems (Win95, Win98, Win2000, WinXP and above).