Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » How to run automated PDE Build with AspectJ Support?
How to run automated PDE Build with AspectJ Support? [message #72442] Mon, 27 October 2008 14:44 Go to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi,

I have one problem, please help me:

I have an eclipse RCP application wich I build automatically with PDE
Builder.
I have some Plugins with AspectJ.

PDE Builder starts with:

<target name="build" description="Build Eclipse Product">

<java
jar=" ${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.0.100 .v20080509-1800.jar "
fork="true"
failonerror="true"
>
<arg line="-application org.eclipse.ant.core.antRunner "/>
<arg line="-buildfile ${pde.buildfile} "/>
<arg line="-Dbuilder=${pde.builder}/scripts "/>
</java>
</target>

and produces my Application. BUT Plugins with AspectJ are builded WITHOUT
AspectJ support!

I use Eclipse 3.4 and AspectJ Developer Tools 1.6.1, what can I do to add
AspectJ-Compiler to my PDE-Builder?

Many thanks,

Nikolai
Re: How to run automated PDE Build with AspectJ Support? [message #72461 is a reply to message #72442] Wed, 29 October 2008 18:33 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
Unfortunately, this is not possible with ajdt as it is currently released.

Internally, however, we use a modified pde builder to do headless building
of AJDT on our build server. This modified builder is meant for internal
use only, but I can release it to you if this is something that you'd like
to try out.

If there is enough interest in this, I will consider releasing a version
of our headless pde builder to the public.
Re: How to run automated PDE Build with AspectJ Support? [message #72661 is a reply to message #72461] Tue, 11 November 2008 13:13 Go to previous messageGo to next message
Sven Krzyzak is currently offline Sven KrzyzakFriend
Messages: 7
Registered: July 2009
Junior Member
Hi

,i'm interested, i have the same problem.

Greetings Sven
Re: How to run automated PDE Build with AspectJ Support? [message #72688 is a reply to message #72461] Tue, 11 November 2008 22:18 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
The bug for keeping track of this enhancement can be found here. Feel
free to add your own comments.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641

However, be aware that the soonest this feature would come out would be
for AJDT 1.7 (Eclipse 3.5). It is unlikely to be back ported to Eclipse
3.2.
Re: How to run automated PDE Build with AspectJ Support? [message #72735 is a reply to message #72461] Tue, 18 November 2008 03:14 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Hi

I have the same problem. Could you please release your build script to me
too? My e-mail address is d95776@yahoo.com

thanks!
hao
Re: How to run automated PDE Build with AspectJ Support? [message #72745 is a reply to message #72735] Tue, 18 November 2008 05:35 Go to previous messageGo to next message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
Please see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641 for
instructions on how to run a headless AspectJ aware build.
Re: How to run automated PDE Build with AspectJ Support? [message #72747 is a reply to message #72442] Tue, 18 November 2008 07:37 Go to previous message
Sven Krzyzak is currently offline Sven KrzyzakFriend
Messages: 7
Registered: July 2009
Junior Member
Nikolai Raitsev schrieb:
> Hi,
>
> I have one problem, please help me:
>
> I have an eclipse RCP application wich I build automatically with PDE
> Builder.
> I have some Plugins with AspectJ.
>
> PDE Builder starts with:
>
> <target name="build" description="Build Eclipse Product">
> <java
> jar=" ${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.0.100 .v20080509-1800.jar "
>
> fork="true"
> failonerror="true"
> >
> <arg line="-application org.eclipse.ant.core.antRunner "/>
> <arg line="-buildfile ${pde.buildfile} "/>
> <arg line="-Dbuilder=${pde.builder}/scripts "/>
> </java> </target>
>
> and produces my Application. BUT Plugins with AspectJ are builded
> WITHOUT AspectJ support!
>
> I use Eclipse 3.4 and AspectJ Developer Tools 1.6.1, what can I do to
> add AspectJ-Compiler to my PDE-Builder?
>
> Many thanks,
>
> Nikolai
>
>
>
>

I found an other solution - the CompilerAdapter

http://www.eclipse.org/aspectj/doc/released/devguide/antTask s-adapter.html

PDE Builder starts with

<java classname="org.eclipse.equinox.launcher.Main" fork="true" >
.
<jvmarg
value=" -Dbuild.compiler=org.aspectj.tools.ant.taskdefs.Ajc11Compile rAdapter "/>
.
</java>

It's neccesary, that your plugin does contain the AspectJ runtime
library (aspectjrt.jar)

Greetings
Sven
Re: How to run automated PDE Build with AspectJ Support? [message #599196 is a reply to message #72442] Wed, 29 October 2008 18:33 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
Unfortunately, this is not possible with ajdt as it is currently released.

Internally, however, we use a modified pde builder to do headless building
of AJDT on our build server. This modified builder is meant for internal
use only, but I can release it to you if this is something that you'd like
to try out.

If there is enough interest in this, I will consider releasing a version
of our headless pde builder to the public.
Re: How to run automated PDE Build with AspectJ Support? [message #599290 is a reply to message #72461] Tue, 11 November 2008 13:13 Go to previous message
Sven Krzyzak is currently offline Sven KrzyzakFriend
Messages: 7
Registered: July 2009
Junior Member
Hi

,i'm interested, i have the same problem.

Greetings Sven
Re: How to run automated PDE Build with AspectJ Support? [message #599307 is a reply to message #72461] Tue, 11 November 2008 22:18 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
The bug for keeping track of this enhancement can be found here. Feel
free to add your own comments.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641

However, be aware that the soonest this feature would come out would be
for AJDT 1.7 (Eclipse 3.5). It is unlikely to be back ported to Eclipse
3.2.
Re: How to run automated PDE Build with AspectJ Support? [message #599340 is a reply to message #72461] Tue, 18 November 2008 03:14 Go to previous message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Hi

I have the same problem. Could you please release your build script to me
too? My e-mail address is d95776@yahoo.com

thanks!
hao
Re: How to run automated PDE Build with AspectJ Support? [message #599355 is a reply to message #72735] Tue, 18 November 2008 05:35 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 369
Registered: July 2009
Senior Member
Please see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641 for
instructions on how to run a headless AspectJ aware build.
Re: How to run automated PDE Build with AspectJ Support? [message #599361 is a reply to message #72442] Tue, 18 November 2008 07:37 Go to previous message
Sven Krzyzak is currently offline Sven KrzyzakFriend
Messages: 7
Registered: July 2009
Junior Member
Nikolai Raitsev schrieb:
> Hi,
>
> I have one problem, please help me:
>
> I have an eclipse RCP application wich I build automatically with PDE
> Builder.
> I have some Plugins with AspectJ.
>
> PDE Builder starts with:
>
> <target name="build" description="Build Eclipse Product">
> <java
> jar=" ${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.0.100 .v20080509-1800.jar "
>
> fork="true"
> failonerror="true"
> >
> <arg line="-application org.eclipse.ant.core.antRunner "/>
> <arg line="-buildfile ${pde.buildfile} "/>
> <arg line="-Dbuilder=${pde.builder}/scripts "/>
> </java> </target>
>
> and produces my Application. BUT Plugins with AspectJ are builded
> WITHOUT AspectJ support!
>
> I use Eclipse 3.4 and AspectJ Developer Tools 1.6.1, what can I do to
> add AspectJ-Compiler to my PDE-Builder?
>
> Many thanks,
>
> Nikolai
>
>
>
>

I found an other solution - the CompilerAdapter

http://www.eclipse.org/aspectj/doc/released/devguide/antTask s-adapter.html

PDE Builder starts with

<java classname="org.eclipse.equinox.launcher.Main" fork="true" >
.
<jvmarg
value=" -Dbuild.compiler=org.aspectj.tools.ant.taskdefs.Ajc11Compile rAdapter "/>
.
</java>

It's neccesary, that your plugin does contain the AspectJ runtime
library (aspectjrt.jar)

Greetings
Sven
Previous Topic:ProceedingJoinPoint can's handle boolean type
Next Topic:create update site with aj support
Goto Forum:
  


Current Time: Sun Dec 21 10:58:02 GMT 2014

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

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