Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created November 25, 2016 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdabir/d174317c38c87b508aaf1e99b58349ab to your computer and use it in GitHub Desktop.
Save kdabir/d174317c38c87b508aaf1e99b58349ab to your computer and use it in GitHub Desktop.
def out = new File("application.properties")
new File('webapp/WEB-INF/conf').eachFile { file ->
new File(file, "app.properties").text.eachLine { line ->
if (!line.trim().startsWith("#")){
out << "${file.name}.${line}"
}else {
out << "${line}"
}
out << "\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment