Fix checkstyle import into Eclipse

Issue gh-3747
This commit is contained in:
Rob Winch 2016-03-14 09:19:55 -05:00
parent ec4e6c7453
commit d85c0395bb
3 changed files with 13 additions and 2 deletions

2
.gitignore vendored
View File

@ -19,5 +19,5 @@ build/
*.iws
.gradle/
atlassian-ide-plugin.xml
!eclipse/.checkstyle
!etc/eclipse/.checkstyle
.checkstyle

11
etc/eclipse/.checkstyle Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<local-check-config name="Spring Security Checkstyle" location="${configDir}/checkstyle.xml" type="external" description="">
<property name="configDir" value="${configDir}"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Spring Security Checkstyle" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>

View File

@ -15,7 +15,7 @@ task eclipseCheckstyle(type: Copy) {
from rootProject.files(
"etc/eclipse/.checkstyle")
into project.projectDir
expand(configDir: rootProject.file('config/checkstyle').absolutePath)
expand(configDir: rootProject.file('etc/checkstyle').absolutePath)
}
task eclipseSettings(type: Copy) {
from rootProject.files(