Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Compiler options

Hi Andy,

I opened Bug 170102 to track this issue.

Thanks a lot for your help!

Eric.

 -------------- Original message ----------------------
From: "Andy Clement" <andrew.clement@xxxxxxxxx>
> I see.  Looking at the code, I do see the hardcoded list of those
> supported in the Ant task right now:
> 
>         	{"constructorName", "packageDefaultMethod", "deprecation",
>         		"maskedCatchBlocks", "unusedLocals", "unusedArguments",
>         		"unusedImports", "syntheticAccess", "assertIdentifier", 
> "none" };
> 
> if you raise a bug I will look to expand the set.  In the short term I
> will only be able to expand the list to those supported at the Eclipse
> 3.1 compiler level.
> 
> cheers,
> Andy.
> 
> On 10/01/07, eric.lessard@xxxxxxxxxxx <eric.lessard@xxxxxxxxxxx> wrote:
> > Sorry, I should have been more specific. When I said "all", I really meant 
> some. "unusedImports" actually works (it is listed in the the iajc ant task 
> description), but many others are rejected by the task (e.g., allDeprecation, 
> allJavaddoc, conditionAssign, etc.).
> >
> > Is this a task limitation?
> >
> > Do you know if there's a bug/enhancement request for this?
> >
> > Thanks,
> >
> > Eric.
> >  -------------- Original message ----------------------
> > From: "Andy Clement" <andrew.clement@xxxxxxxxx>
> > > I just added:
> > >
> > > warn="unusedImports"
> > >
> > > to my iajc Ant call and that worked for activating that particular 
> warning...
> > >
> > > Andy.
> > >
> > > On 09/01/07, eric.lessard@xxxxxxxxxxx <eric.lessard@xxxxxxxxxxx> wrote:
> > > > Thanks Andy.
> > > >
> > > > Do you know if there's a way to achieve the same thing from Ant/Maven? I 
> tried
> > > to use the iajc Ant task and it doesn't seem to accept any of the batch mode
> > > options, and the Maven plug-in doesn't even have an option for warnings.
> > > >
> > > > Eric.
> > > >
> > > >  -------------- Original message ----------------------
> > > > From: "Andy Clement" <andrew.clement@xxxxxxxxx>
> > > > > If you are using the JDT compiler in batch mode, then switching to ajc
> > > > > you can just do 'ajc -?' and you will see the set of warnings it
> > > > > supports which can be switched off with 'ajc -warn:'.  Effectively it
> > > > > is the same set supported by the 3.1 JDT compiler upon which it is
> > > > > based.  If you are in Eclipse then the options that can be set through
> > > > > the UI that existed in 3.1 will work.
> > > > >
> > > > > Andy.
> > > > >
> > > > > On 08/01/07, eric.lessard@xxxxxxxxxxx <eric.lessard@xxxxxxxxxxx> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I'm currently using the Eclipse compiler with all its nice compilation
> > > > > warnings (e.g., missing JavaDoc, unused imports, etc.) and want to 
> switch to
> > > > > AspectJ's compiler. I would like to know if the AspectJ compiler 
> supports
> > > the
> > > > > same warnings and if so, how to turn them on?
> > > > > >
> > > > > > Thanks and regards,
> > > > > >
> > > > > > Eric Lessard
> > > > > > _______________________________________________
> > > > > > aspectj-users mailing list
> > > > > > aspectj-users@xxxxxxxxxxx
> > > > > > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > > > > >
> > > > > _______________________________________________
> > > > > aspectj-users mailing list
> > > > > aspectj-users@xxxxxxxxxxx
> > > > > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > > >
> > > >
> >
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top