Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Created December 15, 2013 04:50
Show Gist options
  • Save lifuzu/7969037 to your computer and use it in GitHub Desktop.
Save lifuzu/7969037 to your computer and use it in GitHub Desktop.
Creating an intersection of two FileCollections
//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