Created
November 28, 2013 12:13
-
-
Save demoth/7690942 to your computer and use it in GitHub Desktop.
get size of java files in folder and subfolders
This file contains hidden or 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 sum = 0; | |
new File('.').eachFileRecurse { | |
if(it.name.endsWith('.java')) | |
sum += it.size() | |
} | |
sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment