How to run automated PDE Build with AspectJ Support? [message #72442] |
Mon, 27 October 2008 10:44  |
Eclipse User |
|
|
|
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 #72747 is a reply to message #72442] |
Tue, 18 November 2008 02:37  |
Eclipse User |
|
|
|
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 14:33  |
Eclipse User |
|
|
|
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 #599361 is a reply to message #72442] |
Tue, 18 November 2008 02:37  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07149 seconds