整理中
$ pwd /Applications/NetBeans/NetBeans 7.0.app/Contents/Resources/NetBeans/sqe/modules/ext $ ls DependencyFinder.jar checkstyle.jar jaxen-dom4j-adapter.jar annotations.jar commons-beanutils-core.jar jaxen.jar antlr.jar commons-lang.jar jcommon.jar asm-3.1.jar dom4j.jar jfreechart-experimental.jar asm-analysis-3.1.jar fb-bcel.jar jfreechart.jar asm-commons-3.1.jar findbugs-ant.jar jsr305.jar asm-tree-3.1.jar findbugs.jar log4j.jar asm-util-3.1.jar google-collections.jar plugin asm-xml-3.1.jar jFormatString.jar pmd.jar buggy.icns jakarta-oro.jar $ mv findbugs.jar findbugs.jar.original $ mkdir tmp $ cd tmp $ jar -xf ../findbugs.jar.original
$ pwd /Applications/NetBeans/NetBeans 7.0.app/Contents/Resources/NetBeans/sqe/modules/ext/tmp $ ls META-INF fancy-hist.xsl messages.xml summary.xsl bugcollection.xsd fancy.xsl messages_fr.xml version.properties bugrank.txt findbugs.xml messages_ja.xml default.xsl findbugsplugin.xsd net edu messagecollection.xsd plain.xsl $ mv messages_ja.xml messages_ja.xml.original $ cat messages_ja.xml.original | iconv -f sjis -t utf-8 | sed -e "s/Shift_JIS/UTF-8/" > messages_ja.xmlsed は、<?xml version="1.0" encoding="Shift_JIS"?> を <?xml version="1.0" encoding="UTF-8"?> に変換している
$ pwd /Applications/NetBeans/NetBeans 7.0.app/Contents/Resources/NetBeans/sqe/modules/ext/tmp $ jar -cf ../findbugs.jar *
$ cd .. $ pwd /Applications/NetBeans/NetBeans 7.0.app/Contents/Resources/NetBeans/sqe/modules/ext $ rm -rf tmp
[~/.netbeans/7.0/config/Preferences/org/nbheaven/sqe/codedefects]$ ls checkstyle.properties checkstyle.xml custom-checkstyle.properties
<module name="Checker"> <property name="charset" value="UTF-8"/> ... </module>
<module name="NewlineAtEndOfFile"> <property name="lineSeparator" value="lf"/> <property name="fileExtensions" value="java, xml, py"/> </module>
There are 4 predefined rulesets. config/sun_checks.xml: Sun Checks. config/turbine_checks.xml: Turbine Checks. config/avalon_checks.xml: Avalon Checks. config/maven_checks.xml: Maven Source Checks.
Default value is: config/sun_checks.xml.