Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321888 - Headless build can't build more than one feature
Summary: Headless build can't build more than one feature
Status: CLOSED DUPLICATE of bug 283347
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 11:03 EDT by Samuel Wu CLA
Modified: 2010-08-05 11:21 EDT (History)
1 user (show)

See Also:


Attachments
test case in zip (453.67 KB, application/octet-stream)
2010-08-05 11:04 EDT, Samuel Wu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Wu CLA 2010-08-05 11:03:37 EDT
Build Identifier: Eclipse 3.6 

I was trying to build two features with PDE headless build using p2.gathering = true and it failed. 

Reproducible: Always

Steps to Reproduce:
1. Pick up SDK 3.6 and put it at D:\eclipse-SDK-3.6
2. Unzip the attached file to D:\HeadlessBuild
3. Start the build with the following command
runbuild >build.log 2>error.log
4. The build failed with the following messages in the error.log
BUILD FAILED
D:\eclipse-SDK-3.6\eclipse\plugins\org.eclipse.pde.build_3.6.0.v20100603\scripts\build.xml:38: The following error occurred while executing this line:
D:\eclipse-SDK-3.6\eclipse\plugins\org.eclipse.pde.build_3.6.0.v20100603\scripts\build.xml:129: The following error occurred while executing this line:
D:\HeadlessBuild\featureBuild\customTargets.xml:19: The following error occurred while executing this line:
D:\eclipse-SDK-3.6\eclipse\plugins\org.eclipse.pde.build_3.6.0.v20100603\scripts\genericTargets.xml:193: The following error occurred while executing this line:
D:\HeadlessBuild\featureBuild\buildDirectory\package.com.ent.customized.toolkit1.all.xml:25: The following error occurred while executing this line:
D:\HeadlessBuild\featureBuild\buildDirectory\package.com.ent.customized.toolkit1.all.xml:15: The following error occurred while executing this line:
D:\eclipse-SDK-3.6\eclipse\plugins\org.eclipse.pde.build_3.6.0.v20100603\templates\headless-build\allElements.xml:31: The following error occurred while executing this line:
D:\HeadlessBuild\featureBuild\buildDirectory\package.com.ent.customized.toolkit1.group.group.group.xml:90: The following error occurred while executing this line:
D:\HeadlessBuild\featureBuild\buildDirectory\package.com.ent.customized.toolkit1.group.group.group.xml:110: D:\HeadlessBuild\featureBuild\buildDirectory\tmp\eclipse not found.

The problem is that when package.com.ent.customized.toolkit.group.group.group.xml was run, it finished the packaging of both features and did the clean up. When package.com.ent.customized.toolkit1.group.group.group.xml was called, it couldn't find the files. It should not be called since the packaging was already done. Haven't figured out how to fix it yet.
If I remove p2.gathering = true from build.properties, the build can finish with two zip files in the old style. No repository was generated.
Comment 1 Samuel Wu CLA 2010-08-05 11:04:45 EDT
Created attachment 175949 [details]
test case in zip
Comment 2 Andrew Niefer CLA 2010-08-05 11:21:22 EDT
See the workarounds in bug 283347

*** This bug has been marked as a duplicate of bug 283347 ***