Compare commits
101
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64d47f79ba | ||
|
|
805aa74551 | ||
|
|
61dffa5f01 | ||
|
|
0babfc13ff | ||
|
|
d0ad6ae6ce | ||
|
|
a7f842c92e | ||
|
|
4ccb814cf1 | ||
|
|
90590dce93 | ||
|
|
99a0c59b98 | ||
|
|
acc799e79d | ||
|
|
97ace24df0 | ||
|
|
ead58c6f49 | ||
|
|
3677ce0235 | ||
|
|
4194855e8c | ||
|
|
4f627b9d43 | ||
|
|
b33075a280 | ||
|
|
e0cf43a60d | ||
|
|
ebe526ca10 | ||
|
|
2a3c0a648a | ||
|
|
2107bef4ee | ||
|
|
e1e03f8645 | ||
|
|
dd0d435511 | ||
|
|
46f3110bcc | ||
|
|
e25162b8d5 | ||
|
|
9215e37ff4 | ||
|
|
6bba7d3546 | ||
|
|
e8887e828a | ||
|
|
78c32afade | ||
|
|
8a32b8e8c4 | ||
|
|
2ad3e5152b | ||
|
|
1dc6b18fae | ||
|
|
1110318832 | ||
|
|
dc100d00bc | ||
|
|
e47d7cd1c8 | ||
|
|
69348714e4 | ||
|
|
390c3778cf | ||
|
|
2e5d6c214f | ||
|
|
bcf567e3b3 | ||
|
|
ed8497a82d | ||
|
|
98e27294f0 | ||
|
|
9255e26c70 | ||
|
|
66e8cfc622 | ||
|
|
a1edabfca3 | ||
|
|
69c41f451a | ||
|
|
4f02afb30e | ||
|
|
890dfac22f | ||
|
|
9a1829cf1d | ||
|
|
fe7ace9507 | ||
|
|
ffc5b6f2a8 | ||
|
|
cdf3d2a9cb | ||
|
|
ff21265893 | ||
|
|
83bb14e28e | ||
|
|
1df96cb2e7 | ||
|
|
3cb34969eb | ||
|
|
bef2183dc7 | ||
|
|
989672f8fb | ||
|
|
090f2af516 | ||
|
|
559d72a9fe | ||
|
|
97762a57ba | ||
|
|
d176e8b51c | ||
|
|
44e7bb6354 | ||
|
|
95e0c7bca2 | ||
|
|
914a1a771e | ||
|
|
73aa908c69 | ||
|
|
a3550d17ec | ||
|
|
7f08a8f7c4 | ||
|
|
dcd2ac2166 | ||
|
|
45d6a710bc | ||
|
|
3cc3c6993b | ||
|
|
3b49640920 | ||
|
|
ae5ae2646e | ||
|
|
850d7bfd00 | ||
|
|
25777937c2 | ||
|
|
2a161c533c | ||
|
|
2aad65138a | ||
|
|
66fed8d9cc | ||
|
|
e1b8334e5e | ||
|
|
8cf1cc4113 | ||
|
|
29b294e2b1 | ||
|
|
c66c01e0ce | ||
|
|
8d3ed164fb | ||
|
|
7e8f558263 | ||
|
|
4c9e714380 | ||
|
|
75503ffa40 | ||
|
|
02a723391d | ||
|
|
25c47c651c | ||
|
|
36b0d87186 | ||
|
|
396509e75a | ||
|
|
3443fe549b | ||
|
|
144a4e152d | ||
|
|
60aa0b1778 | ||
|
|
37a4144bc6 | ||
|
|
030eb40e01 | ||
|
|
4be223bde4 | ||
|
|
bd5ec60a9f | ||
|
|
cfa21c106c | ||
|
|
0d9d09b9dd | ||
|
|
159d9523db | ||
|
|
503b41e40f | ||
|
|
0dc8d20800 | ||
|
|
f9484aa2d2 |
No files matched your search
@@ -1,8 +1,27 @@
|
||||
# PMD
|
||||
[![PMD - Don't shoot the messenger][PMDLogo]][website]
|
||||
|
||||
PMD is a source code analyzer. It finds unused variables,
|
||||
empty catch blocks, unnecessary object creation, and so forth.
|
||||
PMD
|
||||
===
|
||||
|
||||
For more information, visit http://pmd.sourceforge.net
|
||||
About
|
||||
-----
|
||||
PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks,
|
||||
unnecessary object creation, and so forth. It supports Java, JavaScript, XML, XSL.
|
||||
Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in
|
||||
Java, C, C++, C#, PHP, Ruby, Fortran, JavaScript.
|
||||
|
||||
To see the current status of this repo, visit https://buildhive.cloudbees.com/job/pmd/
|
||||
Source
|
||||
------
|
||||
Our latest source of PMD can be found on [GitHub]. Fork us!
|
||||
The current status of this repo can be seen at [BuildHive].
|
||||
|
||||
News and Website
|
||||
----------------
|
||||
More information can be found on our [Website] and on [SourceForge].
|
||||
|
||||
|
||||
[PMDLogo]: http://pmd.sourceforge.net/pmd_logo.png
|
||||
[GitHub]: https://github.com/pmd/pmd
|
||||
[BuildHive]: https://buildhive.cloudbees.com/job/pmd/
|
||||
[Website]: http://pmd.sourceforge.net
|
||||
[SourceForge]: https://sourceforge.net/projects/pmd/
|
||||
@@ -6,12 +6,13 @@
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd-build</artifactId>
|
||||
<name>PMD Build Plugin</name>
|
||||
<version>0.8</version>
|
||||
<version>0.9-SNAPSHOT</version>
|
||||
<packaging>maven-plugin</packaging>
|
||||
<description>
|
||||
<![CDATA[
|
||||
@@ -41,7 +42,7 @@ only if you modify the java code.
|
||||
<connection>scm:git:git://github.com/pmd/pmd.git</connection>
|
||||
<developerConnection>scm:git:ssh://git@github.com/pmd/pmd.git</developerConnection>
|
||||
<url>https://github.com/pmd/pmd</url>
|
||||
<tag>pmd-build/0.8</tag>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
|
||||
<developers>
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
Compilation
|
||||
===========
|
||||
|
||||
'ant plugin' will generate a new version in the 'build' directory.
|
||||
|
||||
|
||||
Setup
|
||||
=====
|
||||
|
||||
If the default configuration is not accurate for your setup, customization
|
||||
can be done in local.properties to point to the Eclipse installation directory
|
||||
and the pde and launcher versions:
|
||||
|
||||
----- local.properties example -----------------
|
||||
eclipse.home=/usr/java/eclipse
|
||||
# find $eclipse.home -name "*pde*" -type d
|
||||
eclipse.pde.version=3.8.2.v20121114-140810
|
||||
# find $eclipse.home -name "*equinox.launcher*" -type f
|
||||
eclipse.launcher.version=1.3.0.v20120522-1813
|
||||
------ end -------------------------------------
|
||||
|
||||
|
||||
Importing the projects in Eclipse
|
||||
=================================
|
||||
|
||||
In the Java perspective, select "Import" -> "Existing Java projects", select
|
||||
the directory where this file is located. The next panel should have four
|
||||
projects:
|
||||
|
||||
net.sourceforge.pmd.eclipse
|
||||
net.sourceforge.pmd.eclipse.plugin
|
||||
pmd-eclipse-test
|
||||
pmd-eclipse-test-fragment
|
||||
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
PMD Eclipse Plugin
|
||||
==================
|
||||
|
||||
Compilation
|
||||
-----------
|
||||
Simply run `mvn clean install`. The plugin's update site will be generated in
|
||||
`net.sourceforge.pmd.eclipse.p2updatesite/target/repository`. You can use this directory as
|
||||
an update site to install the new plugin version directly into your Eclipse.
|
||||
|
||||
Importing the projects in Eclipse
|
||||
---------------------------------
|
||||
Make sure you have the Maven Integration (m2e - http://eclipse.org/m2e/) installed. Then you can
|
||||
import *Existing Maven Projects*.
|
||||
You should see 6 projects:
|
||||
|
||||
* net.sourceforge.pmd.eclipse - that's the feature
|
||||
* net.sourceforge.pmd.eclipse.p2updatesite - generates the update site
|
||||
* net.sourceforge.pmd.eclipse.parent - the parent pom project
|
||||
* net.sourceforge.pmd.eclipse.plugin - the actual plugin code
|
||||
* net.sourceforge.pmd.eclipse.plugin.test - the (unit) tests for the plugin
|
||||
* net.sourceforge.pmd.eclipse.plugin.test.fragment - an example extension of the plugin used during the tests
|
||||
|
||||
|
||||
Releasing and updating the official eclipse update site
|
||||
-------------------------------------------------------
|
||||
|
||||
# First get a copy of the current update site
|
||||
rsync -avhP sf-user@web.sourceforge.net:/home/frs/project/pmd/pmd-eclipse/update-site/ /location/of/local/update-site/
|
||||
# Create a release branch
|
||||
git branch pmd-eclipse-plugin-rb-<version>
|
||||
# Update master branch to the next -SNAPSHOT version.
|
||||
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version+1>-SNAPSHOT
|
||||
# Update versions in n.s.p.e.p2updatesite/category.xml
|
||||
vim net.sourceforge.pmd.eclipse.p2updatesite/category.xml
|
||||
# Commit and push
|
||||
git commit -a -m "Prepare next pmd-eclipse-plugin development version <version+1>-SNAPSHOT"
|
||||
git push origin master
|
||||
|
||||
# Checkout the release branch
|
||||
git checkout pmd-eclipse-plugin-rb-<version>
|
||||
# Pick a release BUILDQUALIFIER (e.g. v20130420-0001) and update versions
|
||||
mvn -Dtycho.mode=maven org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=<version>.BUILDQUALIFIER
|
||||
# Update versions in n.s.p.e.p2updatesite/category.xml
|
||||
vim net.sourceforge.pmd.eclipse.p2updatesite/category.xml
|
||||
# Commit and tag
|
||||
git commit -a -m "Prepare release pmd-eclipse-plugin <version>.BUILDQUALIFIER"
|
||||
git tag pmd-eclipse-plugin/<version>.BUILDQUALIFIER
|
||||
# Build the plugin
|
||||
mvn clean install -Ppublish-to-update-site -Declipse.updatesite.path=/location/of/local/update-site/
|
||||
|
||||
# Test the new update site with eclipse - it should contain the new version
|
||||
# If everything is fine, push the local changes
|
||||
git push origin master
|
||||
git push origin tag pmd-eclipse-plugin/<version>.BUILDQUALIFIER
|
||||
# upload the official update site
|
||||
rsync -avhP /location/of/local/update-site/ sf-user@web.sourceforge.net:/home/frs/project/pmd/pmd-eclipse/update-site/
|
||||
# Cleanup the release branch which was only needed during the release process
|
||||
git checkout master
|
||||
git branch -D pmd-eclipse-plugin-rb-<version>
|
||||
|
||||
Finally announce the new plugin version in the news section of SF: <https://sourceforge.net/p/pmd/news/>.
|
||||
You can use the following template:
|
||||
|
||||
PMD for Eclipse <version> released
|
||||
|
||||
A new PMD for Eclipse plugin version has been released.
|
||||
It is available via the update site: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
|
||||
|
||||
* Release Notes: <https://github.com/pmd/pmd/blob/pmd-eclipse-plugin/<version>/pmd-eclipse-plugin/ReleaseNotes.md>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Updating the used PMD version
|
||||
-----------------------------
|
||||
The parent pom contains the property `pmd.version`. This is used inside the plugin module, to resolve the dependencies.
|
||||
In order to change the PMD version, change this property and rebuild (`mvn clean package`). In case PMD has some
|
||||
changed (added/removed) transitive dependencies, you'll need to update `n.s.p.e.plugin/META-INF/MANIEFEST.MF` as well.
|
||||
All transitive dependencies are copied into the folder `n.s.p.e.plugin/target/lib` during the build.
|
||||
|
||||
|
||||
Useful References
|
||||
-----------------
|
||||
|
||||
* <http://wiki.eclipse.org/Equinox/p2/Publisher>
|
||||
* <http://wiki.eclipse.org/Equinox_p2_Repository_Mirroring>
|
||||
* <http://wiki.eclipse.org/Category:Tycho>
|
||||
* <http://wiki.eclipse.org/Tycho/Additional_Tools>
|
||||
* <http://codeiseasy.wordpress.com/2012/07/26/managing-a-p2-release-repository-with-tycho/>
|
||||
* <http://wiki.eclipse.org/Tycho/Demo_Projects>
|
||||
* <http://wiki.eclipse.org/Tycho/Reference_Card>
|
||||
* <http://eclipse.org/tycho/sitedocs/index.html>
|
||||
* <https://docs.sonatype.org/display/M2ECLIPSE/Staging+and+releasing+new+M2Eclipse+release>
|
||||
* <http://wiki.eclipse.org/Tycho/Packaging_Types>
|
||||
* <http://wiki.eclipse.org/Tycho/Reproducible_Version_Qualifiers>
|
||||
* <http://www.vogella.com/articles/EclipseTycho/article.html>
|
||||
* <http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp01/tycho.demo.itp01.tests/pom.xml>
|
||||
* <http://www.sonatype.com/people/2008/11/building-eclipse-plugins-with-maven-tycho/>
|
||||
* <http://zeroturnaround.com/labs/building-eclipse-plug-ins-with-maven-3-and-tycho/>
|
||||
* <https://github.com/open-archetypes/tycho-eclipse-plugin-archetype>
|
||||
* <http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts>
|
||||
@@ -0,0 +1,41 @@
|
||||
# PMD For Eclipse - Release Notes
|
||||
|
||||
Eclipse Update Site: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
|
||||
|
||||
|
||||
## 11-August-2013: 4.0.1.v20130811-0001
|
||||
|
||||
* Updated PMD to 5.0.5
|
||||
* Fixed Build path exclusions not honored ([bug #988])
|
||||
* Fixed right click to add reviewed comment missing ([bug #1052])
|
||||
* Fixed PMD Eclipse: How to ... documentation missing ([bug #1061])
|
||||
* Fixed Properties page: "Rule-Selection" should be disabled if project-local config is selected ([bug #1070])
|
||||
* Fixed Violations are reported multiple times ([bug #1071])
|
||||
* Fixed Exclude pattern does not work ([bug #1079])
|
||||
* Fixed SWTError: No more handles on Violation Outline View ([bug #1096])
|
||||
* Fixed Selecting non-duplicates during import doesn't work. ([bug #1110])
|
||||
* Fixed Eclipse log file will not be filled ([bug #1112])
|
||||
* Fixed PMD Eclipse plugin doesn't analyze project if it has non-existing source folders ([bug #1116])
|
||||
* Fixed An internal error occurred during: "RenderReport" ([bug #1117])
|
||||
* The official update site is now: <https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/>
|
||||
|
||||
[bug #988]: https://sourceforge.net/p/pmd/bugs/988/
|
||||
[bug #1052]: https://sourceforge.net/p/pmd/bugs/1052/
|
||||
[bug #1061]: https://sourceforge.net/p/pmd/bugs/1061/
|
||||
[bug #1070]: https://sourceforge.net/p/pmd/bugs/1070/
|
||||
[bug #1071]: https://sourceforge.net/p/pmd/bugs/1071/
|
||||
[bug #1079]: https://sourceforge.net/p/pmd/bugs/1079/
|
||||
[bug #1096]: https://sourceforge.net/p/pmd/bugs/1096/
|
||||
[bug #1110]: https://sourceforge.net/p/pmd/bugs/1110/
|
||||
[bug #1112]: https://sourceforge.net/p/pmd/bugs/1112/
|
||||
[bug #1116]: https://sourceforge.net/p/pmd/bugs/1116/
|
||||
[bug #1117]: https://sourceforge.net/p/pmd/bugs/1117/
|
||||
|
||||
|
||||
## 10-May-2013: 4.0.0.v20130510-1000
|
||||
|
||||
* Updated PMD to 5.0.4
|
||||
* Fixed False Positive: LocalVariableCouldBeFinal ([bug #1075])
|
||||
|
||||
[bug #1075]: http://sourceforge.net/p/pmd/bugs/1075/
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
<project name="pmd" default="plugin" basedir=".">
|
||||
|
||||
<property file="local.properties" />
|
||||
|
||||
<property name="dir.build" value="build"/>
|
||||
|
||||
<property name="eclipse.home" value="/usr/java/eclipse"/>
|
||||
<property name="eclipse.pde.version" value="3.4.1.R34x_v20080805"/>
|
||||
<property name="eclipse.launcher.version" value="1.0.101.R34x_v20080819"/>
|
||||
|
||||
<!-- setting builder property to either buildDirectory or basedir as this is broken on my box -->
|
||||
<property name="builder" value="${buildDirectory}"/>
|
||||
<property name="builder" value="${basedir}"/>
|
||||
|
||||
<target name="clean">
|
||||
<antcall target="clean-features" />
|
||||
<delete quiet="true">
|
||||
<fileset dir="." includes="build.properties" />
|
||||
<fileset dir="features/net.sourceforge.pmd.eclipse" includes="build.xml" />
|
||||
<fileset dir="plugins/net.sourceforge.pmd.eclipse.plugin" includes="build.xml, javaCompiler.pmd-plugin.jar.args" />
|
||||
<fileset dir="plugins/net.sourceforge.pmd.eclipse.plugin/bin" />
|
||||
<fileset dir="pmd-eclipse-test/bin" />
|
||||
<fileset dir="pmd-eclipse-test-fragment/bin" />
|
||||
</delete>
|
||||
<delete dir="${dir.build}" />
|
||||
</target>
|
||||
|
||||
<target name="clean-features" depends="features.check" if="features.run">
|
||||
<ant antfile="features/net.sourceforge.pmd.eclipse/build.xml" target="clean" inheritAll="false" />
|
||||
</target>
|
||||
|
||||
<target name="features.check">
|
||||
<condition property="features.run">
|
||||
<available file="features/net.sourceforge.pmd.eclipse/build.xml"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="init">
|
||||
<mkdir dir="${dir.build}" />
|
||||
<copy file="${eclipse.home}/plugins/org.eclipse.pde.build_${eclipse.pde.version}/templates/headless-build/build.properties" tofile="build.properties" overwrite="true" />
|
||||
|
||||
<concat destfile="build.properties" append="true">
|
||||
<fileset dir="." includes="custom_build.properties"/>
|
||||
</concat>
|
||||
<replace file="build.properties" token="buildDirectory=buildDir" value="buildDirectory=${basedir}"/>
|
||||
<replace file="build.properties" token="baseLocation=${base}/eclipse" value="baseLocation=${eclipse.home}"/>
|
||||
</target>
|
||||
|
||||
<target name="plugin" depends="init">
|
||||
<java jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_${eclipse.launcher.version}.jar" fork="true" maxmemory="512M" failonerror="true">
|
||||
<arg value="-application"/>
|
||||
<arg value="org.eclipse.ant.core.antRunner"/>
|
||||
<arg value="-buildfile"/>
|
||||
<arg value="${eclipse.home}/plugins/org.eclipse.pde.build_${eclipse.pde.version}/scripts/build.xml"/>
|
||||
<arg value="-Dbuilder=${basedir}"/>
|
||||
</java>
|
||||
<move todir="${dir.build}">
|
||||
<fileset dir="${basedir}">
|
||||
<include name="assemble.net.sourceforge.pmd.eclipse.*"/>
|
||||
<include name="final*Versions.*"/>
|
||||
<include name="package.net.sourceforge.pmd.eclipse.*"/>
|
||||
</fileset>
|
||||
</move>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -1,8 +0,0 @@
|
||||
topLevelElementId = net.sourceforge.pmd.eclipse
|
||||
outputUpdateJars = true
|
||||
buildDirectory=buildDir
|
||||
buildLabel=build
|
||||
buildId=4.0.0.qualifier
|
||||
javacSource=1.5
|
||||
javacTarget=1.5
|
||||
javacDebugInfo=true
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="src" path=""/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>net.sourceforge.pmd.eclipse</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.FeatureBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.FeatureNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
#Fri Nov 02 14:10:59 PDT 2007
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site>
|
||||
<description url="https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/">
|
||||
PMD for Eclipse Update Site
|
||||
</description>
|
||||
|
||||
<feature url="features/net.sourceforge.pmd.eclipse_4.0.1.v20130811-0001.jar"
|
||||
id="net.sourceforge.pmd.eclipse"
|
||||
version="4.0.1.v20130811-0001">
|
||||
<category name="pmdForEclipse4"/>
|
||||
</feature>
|
||||
|
||||
<category-def name="pmdForEclipse4" label="PMD for Eclipse 4"/>
|
||||
</site>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
|
||||
<version>4.0.1.v20130811-0001</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>net.sourceforge.pmd.eclipse.p2updatesite</artifactId>
|
||||
<packaging>eclipse-repository</packaging>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>publish-to-update-site</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho.extras</groupId>
|
||||
<artifactId>tycho-p2-extras-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>publish</id>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>mirror</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<source>
|
||||
<repository>
|
||||
<url>${project.build.directory}/repository</url>
|
||||
</repository>
|
||||
</source>
|
||||
<append>true</append>
|
||||
<destination>${eclipse.updatesite.path}</destination>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: PMD eclipse test fragment
|
||||
Bundle-SymbolicName: net.sourceforge.pmd.eclipse.plugin.test.fragment
|
||||
Bundle-Version: 4.0.1.v20130811-0001
|
||||
Bundle-Vendor: PMD Development Team
|
||||
Fragment-Host: net.sourceforge.pmd.eclipse.plugin.test
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
@@ -0,0 +1,4 @@
|
||||
source.. = src/main/java,src/main/resources
|
||||
output.. = target/classes/
|
||||
bin.includes = fragment.xml,\
|
||||
META-INF/
|
||||
+4
-4
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?eclipse version="3.0"?>
|
||||
<fragment
|
||||
id="pmd_eclipse_test_fragment"
|
||||
name="Pmd_eclipse_test_fragment Fragment"
|
||||
version="1.0.0"
|
||||
id="net.sourceforge.pmd.eclipse.plugin.test.fragment"
|
||||
name="PMD eclipse test fragment"
|
||||
version="4.0.0.qualifier"
|
||||
|
||||
plugin-id="net.sourceforge.pmd.eclipse.plugin"
|
||||
plugin-version="1.0.0"
|
||||
match="greaterOrEqual">
|
||||
|
||||
<runtime>
|
||||
<library name="pmd_eclipse_test_fragment.jar">
|
||||
<library name="target/net.sourceforge.pmd.eclipse.plugin.test.fragment-4.0.0-SNAPSHOT.jar">
|
||||
<export name="*"/>
|
||||
</library>
|
||||
</runtime>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
|
||||
<version>4.0.1.v20130811-0001</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>net.sourceforge.pmd.eclipse.plugin.test.fragment</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
||||
</project>
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-2
@@ -1,6 +1,6 @@
|
||||
Manifest-Version: 1.0
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-Version: 4.0.0.qualifier
|
||||
Bundle-Version: 4.0.1.v20130811-0001
|
||||
Bundle-Name: PMD Test Plugin
|
||||
Bundle-SymbolicName: net.sourceforge.pmd.eclipse.plugin.test;singleton=true
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
@@ -12,4 +12,3 @@ Require-Bundle: org.eclipse.ui,
|
||||
org.eclipse.jdt,
|
||||
org.eclipse.jdt.core,
|
||||
org.junit
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
@@ -0,0 +1,6 @@
|
||||
bin.includes = META-INF/,\
|
||||
target/classes/,\
|
||||
.ruleset,\
|
||||
.
|
||||
source.. = src/main/java/,src/main/resources
|
||||
output.. = target/classes/
|
||||
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>net.sourceforge.pmd.eclipse.parent</artifactId>
|
||||
<version>4.0.1.v20130811-0001</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>net.sourceforge.pmd.eclipse.plugin.test</artifactId>
|
||||
<!-- <packaging>eclipse-test-plugin</packaging> -->
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.12</version>
|
||||
</plugin>
|
||||
<!--
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<useUIHarness>true</useUIHarness>
|
||||
</configuration>
|
||||
</plugin>
|
||||
-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<!--
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>osx</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>java.vendor.url</name>
|
||||
<value>http://www.apple.com/</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-surefire-plugin</artifactId>
|
||||
<version>${tycho.version}</version>
|
||||
<configuration>
|
||||
<argLine>-XstartOnFirstThread</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
-->
|
||||
|
||||
</project>
|
||||
File renamed without changes.
File renamed without changes.
+2
@@ -42,6 +42,7 @@ import net.sourceforge.pmd.RuleSetNotFoundException;
|
||||
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
@@ -50,6 +51,7 @@ import org.junit.Test;
|
||||
* @author Philippe Herlin
|
||||
*
|
||||
*/
|
||||
@Ignore("Needs a OSGI context")
|
||||
public class PMDCorePluginTest {
|
||||
|
||||
/**
|
||||
File renamed without changes.
+2
@@ -42,6 +42,7 @@ import net.sourceforge.pmd.RuleSetNotFoundException;
|
||||
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
@@ -50,6 +51,7 @@ import org.junit.Test;
|
||||
* @author Philippe Herlin
|
||||
*
|
||||
*/
|
||||
@Ignore("Needs a OSGI context")
|
||||
public class RuleSetsExtensionProcessorTest {
|
||||
|
||||
/**
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 30 of 672 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user