Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » calling aspectj compiler programmatically
calling aspectj compiler programmatically [message #64699] Mon, 01 May 2006 22:04 Go to next message
Eclipse UserFriend
Originally posted by: andrew_NOSPAM_.eisenberg.as

Hi,

I am writing an eclipse plugin and I would like to call the AspectJ compiler as
part of the build process.

The previous part of my build process generates some java files and an lst file
that contains all of the generated java files.

In previous versions of AspectJ, I was able to do this successfully by using
this statement to call the compiler:

Ajde.getDefault().getBuildManager().build(lstFileName);

However, now I would like to start allowing for some Java 5 syntax like
annotations, but the calling the compiler in this manner doesn't seem to
recognize anything Java 5-specific.

I am using Eclipse3.2M5a and AJDT version 1.4.0.20060301124547.

Any ideas on how I can perform the compilation would be appreciated.

thanks,
--andrew
Re: calling aspectj compiler programmatically [message #64722 is a reply to message #64699] Tue, 02 May 2006 06:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Andrew Eisenberg wrote:
> Hi,
>
> I am writing an eclipse plugin and I would like to call the AspectJ
> compiler as part of the build process.
>
> The previous part of my build process generates some java files and an
> lst file that contains all of the generated java files.
>
> In previous versions of AspectJ, I was able to do this successfully by
> using this statement to call the compiler:
>
> Ajde.getDefault().getBuildManager().build(lstFileName);
>
> However, now I would like to start allowing for some Java 5 syntax like
> annotations, but the calling the compiler in this manner doesn't seem to
> recognize anything Java 5-specific.
>
> I am using Eclipse3.2M5a and AJDT version 1.4.0.20060301124547.
>
> Any ideas on how I can perform the compilation would be appreciated.
>
> thanks,
> --andrew

Hi Andrew,

I suspect you need to switch the compiler into 1.5 mode, which is
normally done by the -1.5 option on the command line. We do process
options from .lst files - so it might work for you if you just put -1.5
as an entry in your .lst file?

Andy.
Re: calling aspectj compiler programmatically [message #64792 is a reply to message #64722] Tue, 02 May 2006 17:15 Go to previous message
Eclipse UserFriend
Originally posted by: andrew_NOSPAM_.eisenberg.as

Thanks, Andy.

It seems to work. I'm not quite there yet, but I have gotten over one hurdle.
Re: calling aspectj compiler programmatically [message #593543 is a reply to message #64699] Tue, 02 May 2006 06:40 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Andrew Eisenberg wrote:
> Hi,
>
> I am writing an eclipse plugin and I would like to call the AspectJ
> compiler as part of the build process.
>
> The previous part of my build process generates some java files and an
> lst file that contains all of the generated java files.
>
> In previous versions of AspectJ, I was able to do this successfully by
> using this statement to call the compiler:
>
> Ajde.getDefault().getBuildManager().build(lstFileName);
>
> However, now I would like to start allowing for some Java 5 syntax like
> annotations, but the calling the compiler in this manner doesn't seem to
> recognize anything Java 5-specific.
>
> I am using Eclipse3.2M5a and AJDT version 1.4.0.20060301124547.
>
> Any ideas on how I can perform the compilation would be appreciated.
>
> thanks,
> --andrew

Hi Andrew,

I suspect you need to switch the compiler into 1.5 mode, which is
normally done by the -1.5 option on the command line. We do process
options from .lst files - so it might work for you if you just put -1.5
as an entry in your .lst file?

Andy.
Re: calling aspectj compiler programmatically [message #593580 is a reply to message #64722] Tue, 02 May 2006 17:15 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 77
Registered: July 2009
Member
Thanks, Andy.

It seems to work. I'm not quite there yet, but I have gotten over one hurdle.
Previous Topic:AJDT 1.2.2 for Eclipse 3.0.2 released
Next Topic:pointcuts using annotations
Goto Forum:
  


Current Time: Fri Apr 19 05:12:59 GMT 2024

Powered by FUDForum. Page generated in 0.01994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top