bluepapa32 / gradle-watch-plugin

Gradle Watch Plugin
Apache License 2.0
117 stars 20 forks source link

Possible to include multiple file extensions to watch? #10

Closed frhd closed 9 years ago

frhd commented 9 years ago

Something along the lines of this:

resources {
  files fileTree(dir: 'src/main/resources',
                       include: '**/*.html',
                       include: '**/*.css',)
        tasks 'processResources'
}
bluepapa32 commented 9 years ago

You can use the filetree which includes several file extensions, as follows

resources {
    files fileTree(dir: 'src/main/resources',
                   includes: [ '**/*.html', '**/*.css' ])
    tasks 'processResources'
}

resources {
    files fileTree('src/main/resources') {
        include '**/*.html'
        include '**/*.css'
    }
    tasks 'processResources'
}
frhd commented 9 years ago

Ah right, thanks!