Bug 419279

Summary: ajc option to change -Xlint level per-message without Xlintfile
Product: [Tools] AspectJ Reporter: Rob Platt <rob.platt>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: aclement
Version: 1.7.3   
Target Milestone: 1.7.4   
Hardware: All   
OS: All   
Whiteboard:

Description Rob Platt CLA 2013-10-11 15:20:08 EDT
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
Comment 1 Andrew Clement CLA 2013-10-23 15:45:17 EDT
fixed. -Xlint: can take a comma separated list of name=value pairs.