calling aspectj compiler programmatically [message #64699] |
Mon, 01 May 2006 18:04  |
Eclipse User |
|
|
|
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 #593543 is a reply to message #64699] |
Tue, 02 May 2006 02:40  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03182 seconds