synchronization (i.e. in AWT event thread), fixing bug 787144.
Clean up imports and get rid of multiple fetches of the resource
bundle (flagged by a PMD rule violation for duplicate strings :).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2645 51baf565-9d33-0410-a72c-fc3788e3496d
(makenbm assumes that keystore password is enough,
i.e. that the key itself does not have a separate
password, and this means people will typically not
want to store the pmdkey in their own keystore,
since the password is shared).
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2174 51baf565-9d33-0410-a72c-fc3788e3496d
Sign it by creating your own key in the default keystore location
with Java's keytool, and then passing -Dstorepass=whatever to ant.
Then publish your certificate signature on the website -- or, even
better, sign your certificate with a chain of trust ending in an
official CA, so that people won't have to furrow their eyebrows
about anything ... but then, that costs money :). Ideally we should
have a CA-signed certificate for PMD with which we would sign the
personal key of whoever makes the build -- but of course the key
of that certificate would have to be "closed-source" :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1969 51baf565-9d33-0410-a72c-fc3788e3496d
(1) more graceful handling of IOException if it occurs in execution
(spoils only scanning of that file, not the whole run)
(2) close progress dialog even if execution terminates with IOException
Other (unchecked) exceptions might still bork it though.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1965 51baf565-9d33-0410-a72c-fc3788e3496d
This is done as an "override" on top of the rule properties
configured for each rule in the ruleset XML files. Only
existing properties can be edited; new ones can't be added,
and existing ones can't be removed.
Implementation is slightly quick-n-dirty; I would prefer to
refactor PMD configuration to store rulesets defined in XML
files in the system filesystem, and allow import into that
set of rulesets from external files or the rulesets/* stuff
in the classpath. That would require a bit more surgery :)
and also some discussion to make sure my idea is not
significantly brain-damaged. So this will do for now.
Completes task 75427.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1951 51baf565-9d33-0410-a72c-fc3788e3496d
- javadoc fixes
- made ConfigUtils abstract (provides only static methods)
- use ErrorManager instead of Throwable.printStackTrace and System.out.println
- avoid calling overrideable methods from CustomRuleSetSettings constructor
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1949 51baf565-9d33-0410-a72c-fc3788e3496d
from a PMDException.
Improved handling of PMD errors: when failing with a PMDException, the
Fault now specifies the PMDException's reason.
Also pops up a dialog with the exception details and logs it to ide.log
(encourages people to submit bugs to us, and I doubt that they mind too
much ... at least when this module is in a 0.x version :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1911 51baf565-9d33-0410-a72c-fc3788e3496d
differentiate from the 3.4.1-compatible distribution.
(clearly this commit should not be merged to the branch :)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1859 51baf565-9d33-0410-a72c-fc3788e3496d
This makes the code on trunk incompatible with the latest stable version
of Netbeans (3.4.1). Compatibility with that version is maintained on
branch NB_3_5_COMPATIBLE (which in turn is not compatible with NB 3.5)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1734 51baf565-9d33-0410-a72c-fc3788e3496d