Created
December 15, 2013 04:50
-
-
Save lifuzu/7969037 to your computer and use it in GitHub Desktop.
Creating an intersection of two FileCollections
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
//Creating an intersection of two FileCollections | |
def poems = fileTree(dir: 'src/main/resources', include: '*.txt') | |
def romantics = fileTree(dir: 'src/main/resources', include: 'shelley*') | |
def goodPoems = poems - romantics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment