Created
July 6, 2011 13:51
-
-
Save dgouyette/1067270 to your computer and use it in GitHub Desktop.
Search inside properties if value file exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new File("D://myPath/").eachDirRecurse() { dir -> | |
dir.eachFileMatch(~/.*.properties/) { file -> | |
file.eachLine{ln -> | |
if ( ln =~/\.bat$/) { | |
path = ln.split("=")[1] | |
if (path.startsWith("D:/")){ | |
if (!new File(path).exists()){ | |
println file.path+" => "+ ln | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment