Created
July 30, 2013 12:07
-
-
Save azenla/6112378 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 mainDirectory = new File(getClass().protectionDomain.codeSource.location.path).getParentFile().getParentFile() | |
def sourceDirectory = new File(mainDirectory, 'src/main/java/org/minetweak') | |
println('Found Source Directory: ' + sourceDirectory.toString()) | |
int classCount = 0 | |
sourceDirectory.eachFileRecurse { | |
if (it.getName().endsWith(".java")) { | |
classCount++ | |
} | |
} | |
println(String.format('Found %s classes.', classCount)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment