1377 |
|
<!-- ============================================================== |
1378 |
|
Experimental errorprone support - http://errorprone.info |
1379 |
|
=================================================================== --> |
1380 |
+ |
<property name="errorprone.jar" location="${lib.dir}/error_prone_ant-2.0.21.jar"/> |
1381 |
|
<target name="errorprone" |
1382 |
|
depends="clean, configure-compiler" |
1383 |
|
description="Run errorprone over jsr166 source code (experimental)"> |
1399 |
|
fork="true"> |
1400 |
|
|
1401 |
|
<include name="**/*.java"/> |
1402 |
< |
<compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.21.jar"/> |
1402 |
> |
<compilerarg line="-processorpath ${errorprone.jar}"/> |
1403 |
|
<compilerarg value="-Xplugin:ErrorProne |
1404 |
|
-Xep:IdentityBinaryExpression:WARN |
1405 |
|
-Xep:MissingOverride:OFF |
1429 |
|
workdir="${build.dir}" |
1430 |
|
classes="${product.jar}"> |
1431 |
|
<javac-elements> |
1432 |
< |
<compilerarg line="-processorpath ${lib.dir}/error_prone_ant-2.0.21.jar"/> |
1432 |
> |
<compilerarg line="-processorpath ${errorprone.jar}"/> |
1433 |
|
<compilerarg value="-Xplugin:ErrorProne |
1434 |
|
-Xep:IdentityBinaryExpression:WARN |
1435 |
|
-Xep:BoxedPrimitiveConstructor:OFF |