6636 Commits

Author SHA1 Message Date
Brian Remedios
4808f52509 Additional import dialog improvements.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7554 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-09 07:59:01 +00:00
Brian Remedios
ff59234ff4 Import dialog cleanup: fixed some basic functionality but still needs a fair bit of work to make its operation obvious to the end user and improve error handling.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7553 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-09 06:32:34 +00:00
Romain Pelisse
7d1b3c1034 pmd (build): Update junit to 4.8.2
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7552 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-08 15:53:25 +00:00
Romain Pelisse
843baf888d pmd: Applied patch 3427563 - Deprecated class (android.util.config), kindly provided by Lukas Reschke
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7551 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-08 12:45:46 +00:00
Romain Pelisse
e141e7a5f4 pmd (documentation): Applied patch from Jesse Glick to update links related to Netbeans integration
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7550 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 20:00:40 +00:00
Brian Remedios
fe3b3b2185 Initial cleanup: formatting, rm unnecessary .this, refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7549 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 15:22:02 +00:00
Romain Pelisse
c939f662c5 pmd: Fixed bug 3303811 - Deadlink on "Similar projects" page
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7548 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 13:48:22 +00:00
Romain Pelisse
19dff1d721 cpd: Rework XML renderer (fix: bug 1435751)
CPD XMLRenderer was still manipulating strings and strings buffer
which lead to countless issues with proper encoding. It now uses
the appropriate XML API and relies ONLY on the defined system
variable file.encoding to set the encoding.

If one uses Ant or CLI option to change the encoding, the value of
file.encoding will then adapt. It may sounds a little bit extreme
but it should ensure consistency of all the files...

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7547 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 11:50:40 +00:00
Romain Pelisse
85c7c10f33 pmd (build): Remove uses of pmd.path in ant test file - no longer needed
As Maven is doing the work of having PMD in the classpath
we don't need this parameter. Having it causes problem if
you remove the lib/ folder in the root of the project, so
...

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7546 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 11:49:24 +00:00
Romain Pelisse
4b2f52cfd5 pmd (build): Delete temporary folder lib/
In order to run javacc I implemented a stupid hack
copying and renaming the jar file from the local
repository to a folder called 'lib' (otherwise,
the associate AntTask can't find the jar as it
expect it to be named javacc.jar - grrr...)

Anyway, this change remove the folder at the end
of the alljavac run.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7545 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 11:48:39 +00:00
Romain Pelisse
d8edc69941 pmd (site): Move TODO.txt content to future.xml
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7544 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 00:15:44 +00:00
Romain Pelisse
2d1647774d pmd (build): Add javacc as a dependency, tweak Ant script to use the Maven 2 repository (delete lib/*.jar are they no longer needed)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7543 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 00:15:12 +00:00
Romain Pelisse
97ded9b854 pmd: No documentation for code based rule descriptor.
Currently it's not possible to generate
documentation for a rule with a code based
descriptor - short of generating an XML file from
it and process it through the current set of XSL
transformation we use to produce the website.

While it's a nice idea, I don't think this is
eleganlty doable and I do think it's something
"people are desperatly" waiting for. So, as I
don't want this item to block the release, I'll
remove it...

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7542 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 00:14:32 +00:00
Romain Pelisse
9346cdbe7a pmd: Update etc/changelog with recent decision (we move forward with PMD 5.x incompatible with previous version)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7541 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-07 00:14:08 +00:00
Romain Pelisse
aa0950c5e4 pmd (build): Document how to install the newly born maven plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7540 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:26:11 +00:00
Romain Pelisse
bd8583ea41 pmd (build): externalise properly xsl filename, fixes default path to XSL
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7539 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:25:48 +00:00
Romain Pelisse
a28b3cc948 pmd (build): pmd-build will look for XSL in classpath if it can't find it on filesystem
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7538 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:25:14 +00:00
Romain Pelisse
49b482e9b4 pmd (build): Disable useless xsl:message
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7537 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:24:39 +00:00
Romain Pelisse
a9795f9d17 fixup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7536 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:24:15 +00:00
Romain Pelisse
ebab5a0391 pmd (build): Move the pmd-build subproject out of PMD into its own separate project
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7535 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:23:51 +00:00
Romain Pelisse
ef23452043 pmd (build): Turn pmd-build into mvn plugin
Turning this set of classes into a Maven plugin
has been incredibly easy (less than 30 minutes
actually) and allow us to simplify a little bit
the pom.xml configuration.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7534 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:18:35 +00:00
Romain Pelisse
219e3ba7f1 pmd (build): Bump compilation of tools to Java 1.6
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7533 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:17:48 +00:00
Romain Pelisse
bef556e899 pmd (build): Add a parameter to configure target's destination when generating site.xml
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7532 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:17:21 +00:00
Romain Pelisse
f0276471ec pmd (build): Switch logger from info to debug
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7531 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:16:46 +00:00
Romain Pelisse
7b1ee1a5de pmd (build): Update pmd-build's jar
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7530 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:16:07 +00:00
Romain Pelisse
6ecd260d25 pmd (build): Add a commodity method to printout a DOMSource
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7529 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:15:39 +00:00
Romain Pelisse
4b8caa5bfa pmd (build): Fix bug in site's menu + logging
Fix a bug in the website generation leading all entries in the rulesets navigation
menu to be duplicated.

Also introduce Java Logging, instead of System.out, as a logger for the tools's
subproject. (Rationale behing that is - I hope, an easier integration with Maven later
on without making this code dependant of any librairies outside the JVM).

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7528 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-06 18:14:54 +00:00
Romain Pelisse
dbc4bb12f6 pmd (build): adapt build change to resources files refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7527 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:21:23 +00:00
Romain Pelisse
bad086a731 pmd(build): enhance website to display all rulesets on the navigation menu
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7526 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:20:59 +00:00
Romain Pelisse
27b3689b8a pmd(build): Add missing classes from previous refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7525 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:19:56 +00:00
Romain Pelisse
3a22857498 pmd(build): Fix internal links in rules index pages
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7524 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:18:54 +00:00
Romain Pelisse
9e95c88b39 pmd(build): Remove useless comment strings and whitespaces
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7523 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:18:27 +00:00
Romain Pelisse
b34972eddc pmd(build): Update pmd-build jarfile
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7522 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:17:49 +00:00
Romain Pelisse
5f2e919319 pmd (build): Enhance output from build
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7521 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:17:16 +00:00
Romain Pelisse
b4bae0969a pmd(build): Rework ruleset's XSL for website to support new rulesets coming from new language support
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7520 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:16:52 +00:00
Romain Pelisse
71794decad pmd (build): Refactor pmd-build code
The tools subproject was created over 2 years ago to simplify the build
process and enable both Maven 2 and Ant to easily do what maven 1 was
actually doing for us. The present refactoring has greatly clarified the
code and allow the build to process rulesets's directory recursively, in
order to cope with new rulesets directory layout.

Note: as we are now moving forward with using only mvn as our build system
this subproject will probably wrap into a regular mvn-plugin, and therefore
should be moved from the pmd/ directory to the root of our svn. Maven plugin
integration should reduced greatly the complexity of the pom.xml and remove
the pmd-build-*.jar from the repository... (however, it remains to be done).

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7519 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:16:11 +00:00
Romain Pelisse
53858e98a4 pmd: Add missing language attribute to unusedcode ruleset.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7518 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:15:18 +00:00
Romain Pelisse
78c795a362 pmd (build): Bump build tool version
- bump version to 0.4
- bump ant to 1.8.2
- bump jdk to 1.6

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7517 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:14:39 +00:00
Romain Pelisse
be76e8c414 pmd (build): Remove useless - and not maintened anymore, cpd.jnlp file
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7516 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 23:14:13 +00:00
Brian Remedios
e2fe6d1621 minor tweaks
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7515 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 10:18:10 +00:00
Brian Remedios
54554a5104 Initial Save & load report property settings, needs further cleanup.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7514 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-05 09:57:05 +00:00
Freddy Mallet
0c56454746 Move unit test resources to the standard src/test/resources directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7513 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-04 10:35:21 +00:00
Freddy Mallet
1397774c6f Keep on migrating some files to src/main/resources and remove useless and empty directories
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7512 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 23:29:02 +00:00
Freddy Mallet
e3a371d1fe Move the 'rulesets' direcctory into the standard src/main/resources directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7511 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 23:09:07 +00:00
Freddy Mallet
531d322cb1 Remove the root 'test' directory from the unit test packages
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7510 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 13:40:36 +00:00
Freddy Mallet
f4c833b3a5 Move the 'regress' unit test directory to the standard 'src/test/java' directory
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7509 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 12:59:00 +00:00
Freddy Mallet
0be54d04e0 Add the properties quiet='true' to the Ant delete tasks to be able to build the pmd project out-of-the-box without any required manual operations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7508 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-03 12:38:09 +00:00
Brian Remedios
1b43936562 minor refactorings, tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7507 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-02 07:50:29 +00:00
Romain Pelisse
0a65ddcc2f pmd (build): Adapt build to new layout for xdocs files
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7506 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:39:29 +00:00
Romain Pelisse
f92f6f3447 pmd (build): Enhance pmd-build logging
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7505 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-01 09:38:59 +00:00