Merge pull request #15230 from rjernst/buildsrc_eclipse_settings

Add .settings for buildSrc on gradle eclipse
This commit is contained in:
Robert Muir 2015-12-03 22:59:33 -05:00
commit 001a28bb98
1 changed files with 10 additions and 0 deletions

View File

@ -80,3 +80,13 @@ eclipse {
defaultOutputDir = new File(file('build'), 'eclipse')
}
}
task copyEclipseSettings(type: Copy) {
from project.file('src/main/resources/eclipse.settings')
into '.settings'
}
// otherwise .settings is not nuked entirely
tasks.cleanEclipse {
delete '.settings'
}
tasks.eclipse.dependsOn(cleanEclipse, copyEclipseSettings)