[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.ajdt] Re: Binary cycles while exporting RCP product
|
Thanks for answering Andrew. I've added myself to the CC list of the bug.
But I still have the problem, I'm not able to export my product with aspects support. Do you know what I am doing in the meanwhile? I have to copy compiled aspects from my project output folder into the plugin jar
inside the product zip :O (thanks Midnight Commander for supporting that!!). So every time I have to export a new Milestone, it is a pain you know where :-)
I also have to make a headless build to work. I have it working after following instructions from Andrew Niefer' blog "Building p2 RCP products in Eclipse 3.5M6", but guess what... without aspects working :-)
I found a solution for that in https://bugs.eclipse.org/bugs/show_bug.cgi?id=252641#c12
I replaced this line:
<ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" />
with this one:
<ant antfile="${ajdt.pdebuild.scripts}/productBuild/productBuild.xml" />
but I got this error:
BUILD FAILED
project-releng/buildProduct.xml:21: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/scripts/productBuild/productBuild.xml:20: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/scripts/build.xml:46: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/templates/headless-build/customTargets.xml:73: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/templates/headless-build/customTargets.xml:18: java.net.MalformedURLException: no protocol: ${eclipseBaseURL}
I also tried replacing with this line as the bug comment says:
<ant antfile="${ajdt.pdebuild.scripts}/build.xml" />
but I got this error:
BUILD FAILED
project-releng/buildProduct.xml:21: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/scripts/build.xml:28: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/scripts/build.xml:68: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/templates/headless-build/customTargets.xml:12: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/templates/headless-build/allElements.xml:16: The following error occurred while executing this line:
project-releng/org.eclipse.ajdt.pde.build_1.6.3.200808060918/scripts/genericTargets.xml:88: java.lang.NoSuchMethodError: org.eclipse.pde.internal.build.BundleHelper.getRuntimeJavaProfiles()[Ljava/lang/String;
So, just for you to know, I'm using Galileo release with the proper AJDT version 2.0.0 and it seems that this build plugin is for AJDT 1.6.3. Am I right?
So I would like to know if there is any update of the AJDT PDE Build but for last AJDT version 2.0.0 and if it supports the same that PDE one does, such as p2 repository generation.
Thanks a lot.
Gaston.
Andrew Eisenberg wrote:
> Binary cycles when exporting are not currently supported in AJDT, but
> there is a bug open for this:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268667
>
> There is a patch, which I am planning on integrating soon. Please add
> your name to the cc there and you will be notified of its progress.
>
> The patch will only be applied to the 3.5 stream as Eclipse 3.4 does not
> allow binary cycles.
>
>
> On 02/07/09 9:02 AM, in article h2ilm2$u5h$1@xxxxxxxxxxxxxxxxx, "Gaston M.
> Tonietti" <gaston.tonietti@xxxxxxxxxxxx> wrote:
>
>> Hi guys,
>>
>> I have a problem when I want to export my RCP product.
>>
>> As I have some aspects in my project I tried to export it using "Eclipse
>> product with AspectJ support" export wizard, but the export
>> fails with the following error:
>>
>> Export feature error
>> A cycle was detected when generating the classpath ...
>>
>> I know this problem is fixed in JDT. "Eclipse product" export wizard has
>> a nice and useful checkbox called "Allow for binary cycles in
>> target platform", but if I use this wizard I don't have any aspect in the
>> exported product, compiled aspects are not present in the
>> plug-in jar so I get this error at startup:
>>
>> Cannot register non aspect: ....
>>
>> So, I wonder if there is any way to tell AJDT export wizard to allow for
>> binary cycles just as JDT one does.
>>
>> Thank you very much for your time.
>> Gaston.