Project: AspectJ
Bug 419279 ajc option to change -Xlint level per-message without Xlintfile
Reported: 2013-10-11 15:20:08 | Status: resolved fixed

The -Xlintfile option is not a great fit for controlling message across multiple build projects, specifically in my case from the pluginManagement section of a maven parent pom. The problem is that you need a local file to configure the per-message output levels (ignore/warning/error) when you really want to specify it in the build script or in a shared file. As an alternative to -Xlintfile, it would be handy to be able to change an Xlint warning level per message using command line options. For example: ajc -Xlint:adviceDidNotMatch=ignore would override the XlintDefault.properties file for the adviceDidNotMatch message. With Regards Rob

Files changed in fix:
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java org.aspectj.matcher/src/org/aspectj/weaver/Lint.java testing/newsrc/org/aspectj/testing/CompileSpec.java tests/bugs174/pr419279/Code.java tests/src/org/aspectj/systemtest/ajc174/Ajc174Tests.java