Bug 211605 - archivesFormat does not work with groupConfigurations=true
Summary: archivesFormat does not work with groupConfigurations=true
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M4   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 143261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-30 11:07 EST by kate_glickman CLA
Modified: 2007-12-04 11:41 EST (History)
3 users (show)

See Also:


Attachments
patch to BuildScriptGenerator (1.30 KB, patch)
2007-11-30 11:07 EST, kate_glickman CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kate_glickman CLA 2007-11-30 11:07:04 EST
Created attachment 84189 [details]
patch to BuildScriptGenerator

Build ID:  M20071023-1652

Steps To Reproduce:
1. In the build.properties, set configs to something besides *.*.*
2. Set groupConfigurations=true
3. Set archivesFormat to be folder for each of the configurations.

When you build, the archive will be a zip instead of a folder.


More information:

I debugged into it and found that the reason it doesn't work is because the configuration passed into BuildScriptGenerator.realSetArchivesFormat() is always (group, group, group), which doesn't match any of my real configs.  

So, I tried setting the archiveFormat to group,group,group.  This didn't work either because it checks to see if it's a valid config before adding it to the archivesFormat table.

Then I tried adding group,group,group as a config as well but I got a message saying something about duplicate root_files.

Finally, I made a patch allowing an archiveFormat of group,group,group if groupConfigurations is true.  That works fine, though I don't know if that's the approach you'd like to take.  If you use the patch, you need to be sure to add a comment in the build.properties about needing to specify group,group,group as an archivesFormat if groupConfigurations=true.
Comment 1 Andrew Niefer CLA 2007-11-30 15:46:34 EST
*** Bug 143261 has been marked as a duplicate of this bug. ***
Comment 2 kate_glickman CLA 2007-12-04 09:51:56 EST
So what are the chances of this patch getting into a release any time soon?

Thanks.

Kate
Comment 3 Andrew Niefer CLA 2007-12-04 11:41:38 EST
Patch is released to head.  

We don't want to add "group,group,group" to the configs list, allowing it in the archivesFormat is the simplest option.