Enabled Checkstyle in projects. 09/38609/1
authorDavid M. Karr <davidmichaelkarr@gmail.com>
Mon, 9 May 2016 20:52:37 +0000 (13:52 -0700)
committerDavid M. Karr <davidmichaelkarr@gmail.com>
Mon, 9 May 2016 20:54:18 +0000 (13:54 -0700)
Added src/test/java to build.properties to hopefully prevent Eclipse
from removing the reference to the folder in the build path again.

Added two additional .project files.

Change-Id: Ie59651858369c029de49db5cfba72b54683b082c
Signed-off-by: David M. Karr <davidmichaelkarr@gmail.com>
15 files changed:
.gitignore
.project [new file with mode: 0644]
features/org.opendaylight.yangide.feature/.project
features/org.opendaylight.yangide.m2e.yang.feature/.project
plugins/org.opendaylight.yangide.core/.project
plugins/org.opendaylight.yangide.editor/.project
plugins/org.opendaylight.yangide.ext.model.editor/.classpath
plugins/org.opendaylight.yangide.ext.model.editor/.project
plugins/org.opendaylight.yangide.ext.model.editor/build.properties
plugins/org.opendaylight.yangide.ext.model/.project
plugins/org.opendaylight.yangide.ext.refactoring/.project
plugins/org.opendaylight.yangide.m2e.yang/.project
product/update-site/.project [new file with mode: 0644]
product/update-site/.settings/org.eclipse.core.resources.prefs [new file with mode: 0644]
tests/.project [new file with mode: 0644]

index d0eba68bfc84a25d7fc9bf27ce5e06bbb25c70b2..1aef1bd8d93343af36c5accd4e65da8b2020bb4d 100644 (file)
@@ -3,3 +3,5 @@
 bin/
 libs/
 *~
+.checkstyle
+.pmd
diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..14861b9
--- /dev/null
+++ b/.project
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.opendaylight.yangide.parent</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.m2e.core.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
+       </natures>
+</projectDescription>
index 80b619ec92a4810d4c8a8552471333c1c7a672fa..e02dd1cb69b4fdf8ae2bf60c86b23877429af909 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -19,5 +24,6 @@
        <natures>
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.FeatureNature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index d21a329e3daeea850ff98b74b33496cd84785eb4..b4461666c0e843377a4c3482325c07a41c503240 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -19,5 +24,6 @@
        <natures>
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.FeatureNature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index 7932a0d1084caa6ffb60d4cfd679165215a41643..8afbf510847e6765e322d30b061029ffb376d308 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -30,5 +35,6 @@
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index e461c8d774a607909f320408b0942be1c6a5a70b..c2593069aed15b947062adc5475d8cdc4afde756 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -30,5 +35,6 @@
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index c33c15f00e124e9ac06e575d3addb6a2f1b1e824..cf075adee694e04143a971367900d424a67fb3f4 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
        <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
        <classpathentry kind="src" path="src/main/java"/>
-       <classpathentry kind="src" path="src/test/java"/>
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="src" path="src/test/java/"/>
        <classpathentry kind="output" path="target/classes"/>
 </classpath>
index cf14875072b19eecacf230f2f517255a5e27bab0..4c51245dc1648f6ebc1670e020e43b71778a570e 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -30,5 +35,6 @@
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index 35bc460a81d42507b49b5e8a1bcd2ae5fd849061..ed8c62437a6ec038839ecb11559b98a011061772 100644 (file)
@@ -6,7 +6,8 @@
 #  and is available at http://www.eclipse.org/legal/epl-v10.html
 #  
 ###############################################################################
-source.. = src/main/java
+source.. = src/main/java,\
+           src/test/java/
 output.. = bin/
 bin.includes = icons/,\
                plugin.xml,\
index 03d73c0a57d6b5c230b102754fb92f9a20484d70..20f0e2d3fa91d016f08147031a221ce697017e16 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -31,5 +36,6 @@
                <nature>org.eclipse.sirius.nature.modelingproject</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index 6a31737b089a200859dede968a43bb1189ce2c3a..86839ee61a9378a95f36084919caf7102435b30f 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -30,5 +35,6 @@
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
index 50c79f1a2c6d75e05da443654f872215d2641ec4..93e45075d50625eb5cabc2a420a40a6f6fccd236 100644 (file)
                        <arguments>
                        </arguments>
                </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.m2e.core.maven2Builder</name>
                        <arguments>
@@ -30,5 +35,6 @@
                <nature>org.eclipse.m2e.core.maven2Nature</nature>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
        </natures>
 </projectDescription>
diff --git a/product/update-site/.project b/product/update-site/.project
new file mode 100644 (file)
index 0000000..3a15698
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.opendaylight.yangide.update-site</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.m2e.core.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
+       </natures>
+</projectDescription>
diff --git a/product/update-site/.settings/org.eclipse.core.resources.prefs b/product/update-site/.settings/org.eclipse.core.resources.prefs
new file mode 100644 (file)
index 0000000..99f26c0
--- /dev/null
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/tests/.project b/tests/.project
new file mode 100644 (file)
index 0000000..cc5c944
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.opendaylight.yangide.test.parent</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.m2e.core.maven2Builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.m2e.core.maven2Nature</nature>
+               <nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
+       </natures>
+</projectDescription>