Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Dev vs Prod aspects?
Dev vs Prod aspects? [message #479405] Mon, 10 August 2009 21:53 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
Can someone point me to documentation that describes how to enable aspects
for different types of build? For example, I need to apply an aspect to a
method in development mode, but for production, we cannot have the aspect
applied.

Is there a convenient way to do this?

BTW, our production build is accomplished using standalone ANT if this
helps.

Thanks
Michael
Re: Dev vs Prod aspects? [message #479434 is a reply to message #479405] Tue, 11 August 2009 03:35 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 77
Registered: July 2009
Member
There's no specific documentation on this. However, you may want to take a
look at Ramnivas Laddad's AspectJ in Action (I think 2nd edition is already
out, or will be soon).

I does seem to me that if you keep your aspects in their own directory, it
is simple to include the directory in compilation in test builds, but not in
production builds.

Or, a simpler way would be to use the Java compiler for prod builds and AJC
for test builds.


On 10/08/09 2:53 PM, in article
c694788cf98e41da85df886347f4aebe$1@www.eclipse.org, "Michael Giroux"
<michael_giroux@choicehotels.com> wrote:

> Can someone point me to documentation that describes how to enable aspects
> for different types of build? For example, I need to apply an aspect to a
> method in development mode, but for production, we cannot have the aspect
> applied.
>
> Is there a convenient way to do this?
>
> BTW, our production build is accomplished using standalone ANT if this
> helps.
>
> Thanks
> Michael
>
Re: Dev vs Prod aspects? [message #479542 is a reply to message #479434] Tue, 11 August 2009 13:57 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
Andrew Eisenberg wrote:

> Or, a simpler way would be to use the Java compiler for prod builds and AJC
> for test builds.

This seems the best approach. Thanks
Re: Dev vs Prod aspects? [message #600481 is a reply to message #479405] Tue, 11 August 2009 03:35 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 77
Registered: July 2009
Member
There's no specific documentation on this. However, you may want to take a
look at Ramnivas Laddad's AspectJ in Action (I think 2nd edition is already
out, or will be soon).

I does seem to me that if you keep your aspects in their own directory, it
is simple to include the directory in compilation in test builds, but not in
production builds.

Or, a simpler way would be to use the Java compiler for prod builds and AJC
for test builds.


On 10/08/09 2:53 PM, in article
c694788cf98e41da85df886347f4aebe$1@www.eclipse.org, "Michael Giroux"
<michael_giroux@choicehotels.com> wrote:

> Can someone point me to documentation that describes how to enable aspects
> for different types of build? For example, I need to apply an aspect to a
> method in development mode, but for production, we cannot have the aspect
> applied.
>
> Is there a convenient way to do this?
>
> BTW, our production build is accomplished using standalone ANT if this
> helps.
>
> Thanks
> Michael
>
Re: Dev vs Prod aspects? [message #600489 is a reply to message #479434] Tue, 11 August 2009 13:57 Go to previous message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 81
Registered: July 2009
Location: Phoenix, AZ
Member
Andrew Eisenberg wrote:

> Or, a simpler way would be to use the Java compiler for prod builds and AJC
> for test builds.

This seems the best approach. Thanks
Previous Topic:Dev vs Prod aspects?
Next Topic:Convert to AspectJ project breaks Junit
Goto Forum:
  


Current Time: Thu Mar 28 16:53:52 GMT 2024

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

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

Back to the top