Last active
December 23, 2015 17:29
-
-
Save SlyDen/6669305 to your computer and use it in GitHub Desktop.
Task to create standard Java application's dir tree with .gitkeep files inside.
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
task "create-dirs" << { | |
sourceSets*.java.srcDirs*.each { | |
it.mkdirs() | |
(new File("${it}/.gitkeep")).createNewFile() | |
} | |
sourceSets*.resources.srcDirs*.each { | |
it.mkdirs() | |
(new File("${it}/.gitkeep")).createNewFile() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment