Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » headless pde build not works but found promising workaround
headless pde build not works but found promising workaround [message #600062] Thu, 11 June 2009 04:23
Jörg Kiegeland is currently offline Jörg Kiegeland
Messages: 32
Registered: July 2009
Member
Hi,

As I tried to use the org.eclipse.ajdt.pde.build plugin to build my
product headless, i got following error:

[exec] BUILD FAILED
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\scripts\build.xml:28:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\scripts\build.xml:71:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\templates\headless-build\customTargets .xml:98:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\templates\headless-build\customTargets .xml:46:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\templates\headless-build\customTargets .xml:12:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\templates\headless-build\allElements.x ml:16:
The following error occurred while executing this line:
[exec]
C:\dev\app\3rdParty\eclipse\plugins\org.eclipse.ajdt.pde.bui ld_2.0.0.200906101518\scripts\genericTargets.xml:60:
Basedir C:\dev\app\dist\${topLevelElementType}s\${topLevelElementId}
does not exit


I use Eclipse 3.4.1, AJDT 1.6.4, and the trunk of the
org.eclipse.ajdt.pde.build plugin. Any idea?


As I require only load-time weaving (so the out-of-date problem not
applies to me, and no specific ajc arguments need to be used),
I found another solution, which nearly works perfect and not uses the
ajdt.pde.build plugin:
I use the build.compiler variable to tell the "normal" pde build to use
the aspectj compiler:


<exec executable="eclipsec.exe" failonerror="true">
...
<arg
value=" -Dbuild.compiler=org.aspectj.tools.ant.taskdefs.Ajc11Compile rAdapter "
/>
</exec>

However this not suffices since then, some aspect compiler classes are
not found.
As the description for Ajc11CompilerAdapter explains, one could add
aspectjtools.jar to the ant/lib directory.
But since this jar is no longer delivered in newer ajdt releases, I
added the jars
aspectjrt.jar, aspectjweaver.jar and ajde.jar ( and referenced them from
the manifest of Elcipe's ant plugin), which also do the job.
By the way, using the aspectjtools.jar offered by Sun not works since I
guess its a newer version and I didnt know which version AJDT took.

Next, I discovered that my *.aj files are not compiled. However I
renamed them to *.java, and they got compiled as aspects!
However aspects with the .java extension are not supported in the
Eclipse IDE for editing, so any idea on this?
Or any idea on how to make the pde builder recognise .aj files as source
files to compile?

I would also like not to modify Eclipe's ANT plugin, so any idea on how
I can add all the ajdt plugins on the class path to the eclipse compiler?

Thanks in advance,
Jörg


PS is there a mailing list for adjt-users? on the ajdt website, only a
mailing list for developers is linked.
Previous Topic:ADJT Development
Next Topic:headless pde build not works but found promising workaround
Goto Forum:
  


Current Time: Fri Jul 25 23:15:02 EDT 2014

Powered by FUDForum. Page generated in 0.09555 seconds