Changeset 15588 in josm for trunk/tools/pmd
- Timestamp:
- 2019-12-13T22:12:24+01:00 (5 years ago)
- Location:
- trunk/tools/pmd
- Files:
-
- 4 added
- 9 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/pmd/designer.bat
r13202 r15588 2 2 set TOPDIR=%~dp0.. 3 3 set OPTS= 4 set MAIN_CLASS=net.sourceforge.pmd.util.fxdesigner.Designer 4 set MAIN_CLASS=net.sourceforge.pmd.util.fxdesigner.DesignerStarter 5 5 6 java -classpath "%TOPDIR%\pmd\*" %OPTS% %MAIN_CLASS% %* 6 7 :: sets the jver variable to the java version, eg 901 for 9.0.1+x or 180 for 1.8.0_171-b11 8 :: sets the jvendor variable to either java (oracle) or openjdk 9 for /f tokens^=1^,3^,4^,5^ delims^=.-_+^"^ %%j in ('java -version 2^>^&1 ^| find "version"') do ( 10 set jvendor=%%j 11 if %%l EQU ea ( 12 set /A "jver=%%k00" 13 ) else ( 14 set /A jver=%%k%%l%%m 15 ) 16 ) 17 18 Set "jreopts=" 19 :: oracle java 9 and 10 has javafx included as a module 20 if /I "%jvendor%" EQU "java" ( 21 if %jver% GEQ 900 ( 22 if %jver% LSS 1100 ( 23 :: enable reflection 24 Set jreopts=--add-opens javafx.controls/javafx.scene.control.skin=ALL-UNNAMED 25 ) 26 ) 27 ) 28 29 set "_needjfxlib=0" 30 if /I "%jvendor%" EQU "openjdk" set _needjfxlib=1 31 if /I "%jvendor%" EQU "java" ( 32 if %jver% GEQ 1100 set _needjfxlib=1 33 ) 34 if %_needjfxlib% EQU 1 ( 35 if %jver% LSS 1000 ( 36 echo For openjfx at least java 10 is required. 37 pause 38 exit 39 ) 40 if [%JAVAFX_HOME%] EQU [] ( 41 echo The environment variable JAVAFX_HOME is missing. 42 pause 43 exit 44 ) 45 set "classpath=%TOPDIR%\pmd\*;%JAVAFX_HOME%\lib\*" 46 ) else ( 47 set "classpath=%TOPDIR%\pmd\*" 48 ) 49 50 51 java %PMD_JAVA_OPTS% %jreopts% -classpath "%classpath%" %OPTS% %MAIN_CLASS% %* -
trunk/tools/pmd/josm-ruleset.xml
r14638 r15588 12 12 <exclude name="ArrayIsStoredDirectly"/> 13 13 <exclude name="AvoidPrintStackTrace"/> 14 <exclude name="AvoidReassigningLoopVariables"/> 14 15 <exclude name="AvoidReassigningParameters"/> 15 16 <exclude name="AvoidStringBufferField"/> … … 17 18 <exclude name="ConstantsInInterface"/> 18 19 <exclude name="ForLoopCanBeForeach"/> 20 <exclude name="ForLoopVariableCount"/> 19 21 <exclude name="GuardLogStatement"/> 20 22 <exclude name="JUnit4TestShouldUseAfterAnnotation"/> … … 162 164 <exclude name="BeanMembersShouldSerialize"/> 163 165 <exclude name="CloneThrowsCloneNotSupportedException"/> 166 <!-- <exclude name="CloseResource"/> --> 164 167 <exclude name="CompareObjectsWithEquals"/> 165 168 <exclude name="ConstructorCallsOverridableMethod"/>
Note:
See TracChangeset
for help on using the changeset viewer.