AFAIK the PreferencesAPI works only on a part of the Windows Registry, but I havent tried. I dont know the Orangavolt Ant Tasks, but using tasks is the way I would prefer ...
Another way would be creating a reg-file and executing regedit for importing that. Jan >-----Ursprüngliche Nachricht----- >Von: Robert Pepersack [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 13. Oktober 2006 14:51 >An: user@ant.apache.org >Betreff: Ant and the Windows Registry > >Hi all, > >I would like to read and alter a Windows registry key with >Ant. You may ask why would I want to change the Windows >registry??!! I want to change the registry because I want to >change my J2EE server's (Sybase >EAServer) classpath from Ant. My fellow developers and I >could change our servers' classpathes manually by opening >regedit, but this would be prone to point-and-click screw-ups. > I think that changing the registry from Java would be more >reliable and less error-prone. > >I Googled on the subject and found that there is a Java >Preferences API and Orangevolt Ant Tasks. Has anyone used >these, or know of something better? > >Thanks, > >Bob > >Robert Pepersack >Senior Lead Developer >Maryland Insurance Administration >410-468-2054 > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]