Created
November 25, 2016 02:41
-
-
Save kdabir/d174317c38c87b508aaf1e99b58349ab to your computer and use it in GitHub Desktop.
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
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