Community
Participate
Working Groups
I currently have one feature (foo) that depends on feature (bar) being built first. I have done this by customizing allElementsDelegator by adding a second call to genericTargets. Both features appear to get assembled in ${build_dir}/tmp, but when the packaging gets called, the cleanup assembly from the first feature removes the temp directory and the build fails. Maybe this is just a misuse of allElementsDelegator.
I should also point out that if I remove the runPackager, then the error doesn't happen, and I still get a repository. Is runPackager still relevant?
here is a trace of the problem: BUILD FAILED C:\Documents and Settings\irbull\workspaces\book\feature.builder\build.xml:38: The following error occurred while executing this line: C:\Documents and Settings\irbull\workspaces\book\feature.builder\build.xml:129: The following error occurred while executing this line: C:\eclipse\eclipse\plugins\org.eclipse.pde.build_3.5.0.v20090527-1800\templates\headless-build\customTargets.xml:12: The following error occurred while executing this line: C:\Documents and Settings\irbull\workspaces\book\feature.builder\allElements.xml:20: The following error occurred while executing this line: C:\eclipse\eclipse\plugins\org.eclipse.pde.build_3.5.0.v20090527-1800\scripts\genericTargets.xml:192: The following error occurred while executing this line: C:\Documents and Settings\irbull\eclipse_feature.build\package.org.equinoxosgi.toast.client.audio.feature.all.xml:23: The following error occurred while executing this line: C:\Documents and Settings\irbull\eclipse_feature.build\package.org.equinoxosgi.toast.client.audio.feature.all.xml:15: The following error occurred while executing this line: C:\Documents and Settings\irbull\workspaces\book\feature.builder\allElements.xml:35: The following error occurred while executing this line: C:\Documents and Settings\irbull\eclipse_feature.build\package.org.equinoxosgi.toast.client.audio.feature.group.group.group.xml:90: The following error occurred while executing this line: C:\Documents and Settings\irbull\eclipse_feature.build\package.org.equinoxosgi.toast.client.audio.feature.group.group.group.xml:110: C:\Documents and Settings\irbull\eclipse_feature.build\tmp\eclipse not found.
I'm having a similar problem that results in the same error. I'm trying to build two features that should be packaged into two separate zip files. I also specified the two features in the allElementsDelegator target in the allElements.xml file. The porblem only occurs when p2.gathering is set to true. With the p2.gathering everything works as expected.
There is an additional problem with the p2 gathering and multiple features in the allElementsDelegator. In my setup the mirroring of the first archive is succesful, due to the problem with the cleanup the build fails when the archive for the second featureshall be created. When I look at the contents of the first archive after the aborted build, I observed that the archive actually contains all the plug-ins and features from both "top-level" features specified in the allElementsDelegator.
I found a workaround for this bug by using custom assembly targets in the allElements.xml that set specific tmp folders for each feature. Here's what I changed/added in my allElements.xml: At the top of allElements.xml: <property name="defaultAssemblyEnabled" value="false"/> <property name="assemble.org.foo.sdk.group.group.group" value="true"/> <target name="assemble.org.foo.sdk.group.group.group"> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"> <property name="assemblyTempDir" value="${buildDirectory}/tmp-sdk"/> </ant> </target> Create such a property/target pair for each feature in the allElementsDelegator.
I was going to suggest setting that property in the delegator: <target name="allElementsDelegator"> <ant antfile="${genericTargets}" target="${target}"> <property name="type" value="feature" /> <property name="id" value="org.foo.sdk" /> <property name="assemblyTempDir" value="${buildDirectory}/tmp-foo" /> </ant> <ant antfile="${genericTargets}" target="${target}"> <property name="type" value="feature" /> <property name="id" value="org.bar.sdk" /> <property name="assemblyTempDir" value="${buildDirectory}/tmp-bar" /> </ant </target>
*** Bug 321888 has been marked as a duplicate of this bug. ***
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. Please reopen, if you plan to provide a fix.