Bug 571672: Add PMD support to projects
Change-Id: Ib7e7e874bd26bb4bcf341a69e679d18d593f76ea
diff --git a/plugins/org.eclipse.ease.modules.charting/.eclipse-pmd b/plugins/org.eclipse.ease.modules.charting/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.charting/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.charting/.project b/plugins/org.eclipse.ease.modules.charting/.project
index 3134ccb..2bf759a 100644
--- a/plugins/org.eclipse.ease.modules.charting/.project
+++ b/plugins/org.eclipse.ease.modules.charting/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.help/.eclipse-pmd b/plugins/org.eclipse.ease.modules.help/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.help/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.help/.project b/plugins/org.eclipse.ease.modules.help/.project
index 5d3165b..12b45bd 100644
--- a/plugins/org.eclipse.ease.modules.help/.project
+++ b/plugins/org.eclipse.ease.modules.help/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.jvm/.eclipse-pmd b/plugins/org.eclipse.ease.modules.jvm/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.jvm/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.jvm/.project b/plugins/org.eclipse.ease.modules.jvm/.project
index 86c9546..9d0999a 100644
--- a/plugins/org.eclipse.ease.modules.jvm/.project
+++ b/plugins/org.eclipse.ease.modules.jvm/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.modeling.ui/.eclipse-pmd b/plugins/org.eclipse.ease.modules.modeling.ui/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.modeling.ui/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.modeling.ui/.project b/plugins/org.eclipse.ease.modules.modeling.ui/.project
index 89b59f8..c222778 100644
--- a/plugins/org.eclipse.ease.modules.modeling.ui/.project
+++ b/plugins/org.eclipse.ease.modules.modeling.ui/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.modeling/.eclipse-pmd b/plugins/org.eclipse.ease.modules.modeling/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.modeling/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.modeling/.project b/plugins/org.eclipse.ease.modules.modeling/.project
index e71a089..ab5f7cd 100644
--- a/plugins/org.eclipse.ease.modules.modeling/.project
+++ b/plugins/org.eclipse.ease.modules.modeling/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.platform/.eclipse-pmd b/plugins/org.eclipse.ease.modules.platform/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.platform/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.platform/.project b/plugins/org.eclipse.ease.modules.platform/.project
index 1136f8d..85285b4 100644
--- a/plugins/org.eclipse.ease.modules.platform/.project
+++ b/plugins/org.eclipse.ease.modules.platform/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.team.git.ui/.eclipse-pmd b/plugins/org.eclipse.ease.modules.team.git.ui/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.team.git.ui/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.team.git.ui/.project b/plugins/org.eclipse.ease.modules.team.git.ui/.project
index aa1db52..4ab9fc1 100644
--- a/plugins/org.eclipse.ease.modules.team.git.ui/.project
+++ b/plugins/org.eclipse.ease.modules.team.git.ui/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.team.git/.eclipse-pmd b/plugins/org.eclipse.ease.modules.team.git/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.team.git/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.team.git/.project b/plugins/org.eclipse.ease.modules.team.git/.project
index 6cb63c1..376dcfc 100644
--- a/plugins/org.eclipse.ease.modules.team.git/.project
+++ b/plugins/org.eclipse.ease.modules.team.git/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/plugins/org.eclipse.ease.modules.team.svn/.eclipse-pmd b/plugins/org.eclipse.ease.modules.team.svn/.eclipse-pmd
new file mode 100644
index 0000000..009786d
--- /dev/null
+++ b/plugins/org.eclipse.ease.modules.team.svn/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/plugins/org.eclipse.ease.modules.team.svn/.project b/plugins/org.eclipse.ease.modules.team.svn/.project
index 3faa1f0..2d96c7e 100644
--- a/plugins/org.eclipse.ease.modules.team.svn/.project
+++ b/plugins/org.eclipse.ease.modules.team.svn/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>
diff --git a/tests/org.eclipse.ease.modules.platform.test/.eclipse-pmd b/tests/org.eclipse.ease.modules.platform.test/.eclipse-pmd
new file mode 100644
index 0000000..f96e333
--- /dev/null
+++ b/tests/org.eclipse.ease.modules.platform.test/.eclipse-pmd
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipse-pmd xmlns="http://acanda.ch/eclipse-pmd/0.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://acanda.ch/eclipse-pmd/0.8 http://acanda.ch/eclipse-pmd/eclipse-pmd-0.8.xsd">
+ <analysis enabled="true" />
+ <rulesets>
+ <ruleset name="EASE Rules" ref="org.eclipse.ease.modules.releng/pmd/pmd_rules_unittest.xml" refcontext="workspace" />
+ </rulesets>
+</eclipse-pmd>
\ No newline at end of file
diff --git a/tests/org.eclipse.ease.modules.platform.test/.project b/tests/org.eclipse.ease.modules.platform.test/.project
index 97f28e5..f4a299b 100644
--- a/tests/org.eclipse.ease.modules.platform.test/.project
+++ b/tests/org.eclipse.ease.modules.platform.test/.project
@@ -30,11 +30,17 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>ch.acanda.eclipse.pmd.builder.PMDBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
<nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
+ <nature>ch.acanda.eclipse.pmd.builder.PMDNature</nature>
</natures>
</projectDescription>