Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315375

Summary: automated build should include building & uploading the command line compiler
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: RelengAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7   
Target Milestone: 0.7 M4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stephan Herrmann CLA 2010-06-02 06:50:21 EDT
Our automated build attempts to build the command line compiler as
  org.eclipse.jdt.core_3.6.0.v_OTDT_r070_qualifier/ecj/global/ecotj-global.jar
however, that jar file is essentially empty.

Should investigate why this is so.

Once we successfully build it, we should also copy it to the download area.
(Currently all these steps are performed manually).
Comment 1 Stephan Herrmann CLA 2010-06-02 09:00:53 EDT
At a closer look our build first creates a good ecotj-global.jar but 
later replaces it with an almost empty file.

The bogus second export is triggered from 
p2helper.xml: 
  updateSiteExport -> doUpdateSiteExport -> <ant ... target="build.update.jar">
causing a bogus round of build.jars -> post.build.jars

Hopefully this bug can be avoided by switching to PDE/Build's built-in
support for creating a p2 repository.

Documentation that should be helpful for this migration can be found in
the online help of the PDE (searching the web only brings outdated info).
Comment 2 Stephan Herrmann CLA 2010-06-09 09:29:44 EDT
Indeed, "modernizing" our build scripts (r418 - r425) has fixed the double 
processing that deleted the successfully build jar file, which is found in
  testrun/build-root/src/plugins/org.eclipse.jdt.core_3.6.0.v_OTDT_r070_qualifier/ecj/global/ecotj-global.jar

The remaining is just an issue of copying the resulting file to the download
area, which will be done using a separate shell script (don't want this to
happen for *every* build actually).

I'm also still investigating whether "global" should be replaced by
the actual buildLabel: should this be done during the build or afterwards
when copying to the download area? I can switch between both behaviours
using a one-line change in JDT/Core's customBuildCallbacks.xml (r446).
Comment 3 Stephan Herrmann CLA 2010-06-11 18:12:54 EDT
has been working in late builds.