Fix Checkstyle Eclipse Settings

Issue gh-417
This commit is contained in:
Rob Winch
2016-03-14 00:13:46 -05:00
parent 11e418526e
commit 4f7728f5b5
4 changed files with 8 additions and 15 deletions

2
.gitignore vendored
View File

@@ -10,3 +10,5 @@ target
out
.springBeans
*.rdb
!eclispe/.checkstyle
.checkstyle

View File

@@ -5,7 +5,7 @@
<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 Session Checkstyle" local="false">
<fileset name="all" enabled="true" check-config-name="Spring Session Checkstyle" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
</fileset-config>

View File

@@ -11,9 +11,11 @@ eclipse.project.natures "net.sf.eclipsecs.core.CheckstyleNature"
// Include project specific settings
task eclipseCheckstyle(type: Copy) {
from rootProject.files(
"eclipse/.eclipse")
expand(configdir: rootProject.file('config/checkstyle'))
"eclipse/.checkstyle")
into project.projectDir
expand(configDir: rootProject.file('config/checkstyle').absolutePath)
}
task eclipseSettings(type: Copy) {
from rootProject.files(
"eclipse/org.eclipse.jdt.ui.prefs",

View File

@@ -1,11 +0,0 @@
<?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 Session Checkstyle" location="/Users/rwinch/code/spring-session/config/checkstyle/checkstyle.xml" type="external" description="">
<property name="configDir" value="/Users/rwinch/code/spring-session/config/checkstyle"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Spring Session Checkstyle" local="false">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>