Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 287127 - Headless build creates wrong archive file extensions
Summary: Headless build creates wrong archive file extensions
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-19 20:02 EDT by Eric Jain CLA
Modified: 2018-12-03 09:10 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jain CLA 2009-08-19 20:02:42 EDT
Build ID: 20090619-0625

I have the following in my build.properties:

  archivesFormat=win32, win32, x86 - zip & \
   linux, gtk, x86 - tar

This creates a gzipped tar file for Linux, as expected. However, the file is named test-linux.gtk.x86.zip rather than test-linux.gtk.x86.tar.gz.
Comment 1 Andrew Niefer CLA 2009-08-20 14:07:57 EDT
This is actually an old problem.  

For feature builds, copy org.eclipse.pde.build/templates/headless-build/allElements.xml into your builder directory.


For those platforms needing the extension changed, define custom assemble targets:
<property name="assemble.<element.id>.linux.gtk.x86" value="true" />
<target name="assemble.<element.id>.linux.gtk.x86">
   <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
      <property name="archiveName" value="${archiveNamePrefix}-${config}.tar.gz"/>
   </ant>
</target>

<element.id> should be the top level feature id you are building.

For product builds, copy org.eclipse.pde.build/scripts/productBuild/allElements.xml

It already has targets similar to above, edit the appropriate ones.
For the productBuild.xml to use this modified allElements.xml, you will need to define "allElementsFile" to point to your changed version.  This property needs to be defined before calling productBuild.xml (the build.properties is not good enough).  Do it on the command line, or in some wrapper build script.
Comment 2 Eric Jain CLA 2009-08-20 14:14:01 EDT
Thanks, good to know there is a workaround.
Comment 3 Lars Vogel CLA 2018-12-03 09:10:00 EST
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.
Comment 4 Lars Vogel CLA 2018-12-03 09:10:32 EST
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.