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 #74136] Thu, 11 June 2009 08:23 Go to next message
Jörg Kiegeland is currently offline Jörg KiegelandFriend
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.
Re: headless pde build not works but found promising workaround [message #74154 is a reply to message #74136] Thu, 11 June 2009 17:41 Go to previous message
Eclipse UserFriend
Originally posted by: andrew.eisenberg.springsource.com

Have you tried the instructions here:

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

The pde builder is not officially supported. It hasn't really been tested
on anything but AJDT itself, so it could be that you are hitting against
some bug that we haven't seen yet.

If the instructions in the bug report above do not solve your problem, then
you can post to the ajdt-dev mailing list. Please include your ant script
build.properties, and any custom targets so I can have a better idea of what
you are doing.


> PS is there a mailing list for adjt-users? on the ajdt website, only a
> mailing list for developers is linked.
There is no explicit mailing list for AJDT users, you can use the
aspectj-users list. However, this kind of question would be appropriate on
the ajdt-dev list.
Re: headless pde build not works but found promising workaround [message #600073 is a reply to message #74136] Thu, 11 June 2009 17:41 Go to previous message
Andrew Eisenberg is currently offline Andrew EisenbergFriend
Messages: 77
Registered: July 2009
Member
Have you tried the instructions here:

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

The pde builder is not officially supported. It hasn't really been tested
on anything but AJDT itself, so it could be that you are hitting against
some bug that we haven't seen yet.

If the instructions in the bug report above do not solve your problem, then
you can post to the ajdt-dev mailing list. Please include your ant script
build.properties, and any custom targets so I can have a better idea of what
you are doing.


> PS is there a mailing list for adjt-users? on the ajdt website, only a
> mailing list for developers is linked.
There is no explicit mailing list for AJDT users, you can use the
aspectj-users list. However, this kind of question would be appropriate on
the ajdt-dev list.
Previous Topic:headless pde build not works but found promising workaround
Next Topic:ADJT Development
Goto Forum:
  


Current Time: Wed Nov 26 00:55:27 GMT 2014

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

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