compilerArg for batch compiler/PDE Build -warn:-raw not working [message #1766896] |
Wed, 28 June 2017 15:33 |
Glenn Burkhardt Messages: 12 Registered: April 2017 |
Junior Member |
|
|
I'm using Eclipse Neon 4.6.3 with Java 8.121.
During our headless builds, I'm getting warnings about raw types, e.g.,
Type safety: The method fireValueChange(ValueDiff) belongs to the raw type AbstractObservableValue. References to generic type AbstractObservableValue<T> should be parameterized
I'd like to ignore these for the moment, so I changed the 'compilerArg' entry in build.properties to be something like:
compilerArg="-warn:-raw,+null,nullDereference,unusedAllocation
but that doesn't suppress the warnings. Oddly, this did:
compilerArg="-warn:none,+null,nullDereference,unusedAllocation
but there's a message in the output:
invalid warning token: 'none'. Ignoring warning and compiling
How does one get this to work? Or is it a bug?
|
|
|
|
Re: compilerArg for batch compiler/PDE Build -warn:-raw not working [message #1769667 is a reply to message #1769342] |
Wed, 02 August 2017 13:59 |
Glenn Burkhardt Messages: 12 Registered: April 2017 |
Junior Member |
|
|
I'm invoking the build with
/c/Program Files/Java/jdk1.8.0_141/bin/java' -jar /d/eclipse.neon.x86_64/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar -application org.eclipse.ant.core.antRunner -buildfile /d/eclipse.neon.x86_64/plugins/org.eclipse.pde.build_3.9.200.v20160204-0642/scripts/productBuild/productBuild.xml -Dbuilder=/c/views/integ3/itek/JavaProjects/projects/rmps/buildConfig -Dbase=/d -DbaseLocation=/d/eclipse.neon.x86_64 '-DSO_PREFIX= ' -DSO_SUFFIX=dll -data ./workspace -Dbaseos=win32 -Dbasews=win32 -Dbasearch=x86_64 -Dconfigs=win32,win32,x86_64 -DbuildType=R -DbuildId=TestBuild -DarchiveNamePrefix=com.goodrich.rmps -DarchivePrefix=RMPS -DbuildDirectory=/c/views/integ3/itek/JavaProjects/projects/rmps -Dproduct=/c/views/integ3/itek/JavaProjects/projects/rmps/plugins/com.goodrich.rmps.db110.productLine.product/rmps.productLine.db110.product
The compilerArg value is specified in "/c/views/integ3/itek/JavaProjects/projects/rmps/buildConfig/build.properties":
compilerArg="-warn:-raw,-deprecation,-enumSwitch,+null,nullDereference,unusedAllocation,unusedThrown,unusedImport,deadCode,hiding,uselessTypeCheck,syncOverride,semicolon,conditionAssign,fallthrough"
|
|
|
|
Powered by
FUDForum. Page generated in 0.03049 seconds