The moose likes Ant, Maven and Other Build Tools and the fly likes Executing Regedit within Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Executing Regedit within Ant" Watch "Executing Regedit within Ant" New topic
Author

Executing Regedit within Ant

Jesse Felter
Greenhorn

Joined: Aug 23, 2004
Posts: 17
I have a couple of small problems, what I am trying to do is install a few registry files within a certain folder with ant.. so I have a path to a folder called cdrive and when the task comes up I want to have all of the files in there be installed.. My problem is I can only do this by hardcoding the name into the arg value="" of the exec command.. I was wondering if there was an overarching way to get all of the files?

My second small problem is I am reading the path to the dir containing the files from a build.properties file.. when I do this and put in the property it throws an error saying the dir is not found.. However when I hardcode the same path into the dir of exec it works fine.. I have checked the paths and slashes many times, i am just wondering what could be throwing this off..

Thanks
 
 
subject: Executing Regedit within Ant
 
Threads others viewed
Recursive copying and pasting of files
.bat Executed Direct from exec
ANT classpath
ant javac task not copying directory with no java files
JFileChooser browsing behavior
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture