Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPP » Pascal: Packager doesn't honor order given in maps
Pascal: Packager doesn't honor order given in maps [message #3821] Fri, 16 February 2007 09:33 Go to next message
Eclipse UserFriend
Originally posted by: ureupke.innoopract.com

Pascal,

as I wrote elsewhere, I am assisting Markus with the packaging component.

Thanks for suggesting the PDE Packager as a basis for EPP.
The tool performs most of the required tasks as required by this
project, but just now, I have come across a problem I believe I cannot
solve by pre- or post-processing.

I am assembling the packages from three components - the Eclipse RCP
drops provided on the downloads page as "root" files, the requested
features downloaded from an update site, and a user-specified config.ini.
A custom config.ini is required, since the RCP drops come unconfigured.
To this end, I am creating a map file referencing the root files, a .zip
of the downloaded features, and another zip containing nothing but the
configuration file.
Packager then should take those files and work its magic, but alas, it
succeeds only in part. The FetchFileGenerator reads the contents of the
map file to a Properties object, which is essentially a HashMap, and
thus the order of iteration is not the order of insertion - which leads
to some root-file-archives being extracted after the config.ini-archive,
thus overwriting the custom file.

Could you advise me as to whether there is a more appropriate approach
to the custom config problem or whether we could change the packager so
that it honored the order given in the map file?

Thanks a lot
-Urs
Re: Pascal: Packager doesn't honor order given in maps [message #3828 is a reply to message #3821] Fri, 16 February 2007 14:46 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
Hi Urs,

This can be solved by setting the following properties in the
packaging.properties file
unzipOrder=<prefixToZipFileToUnzipFirst>,
<prefixToZipFileToUnzipSecond>, ...

Please also post these questions on pde-build-dev as I only check the
newsgroup once a day

PaScaL


"Urs Reupke" <ureupke@innoopract.com> wrote in message
news:er3tph$sus$1@utils.eclipse.org...
> Pascal,
>
> as I wrote elsewhere, I am assisting Markus with the packaging component.
>
> Thanks for suggesting the PDE Packager as a basis for EPP.
> The tool performs most of the required tasks as required by this project,
> but just now, I have come across a problem I believe I cannot solve by
> pre- or post-processing.
>
> I am assembling the packages from three components - the Eclipse RCP drops
> provided on the downloads page as "root" files, the requested features
> downloaded from an update site, and a user-specified config.ini.
> A custom config.ini is required, since the RCP drops come unconfigured.
> To this end, I am creating a map file referencing the root files, a .zip
> of the downloaded features, and another zip containing nothing but the
> configuration file.
> Packager then should take those files and work its magic, but alas, it
> succeeds only in part. The FetchFileGenerator reads the contents of the
> map file to a Properties object, which is essentially a HashMap, and thus
> the order of iteration is not the order of insertion - which leads to some
> root-file-archives being extracted after the config.ini-archive, thus
> overwriting the custom file.
>
> Could you advise me as to whether there is a more appropriate approach to
> the custom config problem or whether we could change the packager so that
> it honored the order given in the map file?
>
> Thanks a lot
> -Urs
Re: Pascal: Packager doesn't honor order given in maps [message #3841 is a reply to message #3828] Mon, 19 February 2007 08:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ureupke.innoopract.com

Pascal Rapicault wrote:
> This can be solved by setting the following properties in the
> packaging.properties file
> unzipOrder=<prefixToZipFileToUnzipFirst>,
> <prefixToZipFileToUnzipSecond>, ...

Thanks a lot, problem solved.
Is this information documented somewhere outside the source code?

-Urs
Re: Pascal: Packager doesn't honor order given in maps [message #3855 is a reply to message #3841] Tue, 20 February 2007 02:49 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
No. I have opened a bug to capture this lack of doc
PaScaL

"Urs Reupke" <ureupke@innoopract.com> wrote in message
news:erblh4$rst$1@utils.eclipse.org...
> Pascal Rapicault wrote:
>> This can be solved by setting the following properties in the
>> packaging.properties file
>> unzipOrder=<prefixToZipFileToUnzipFirst>,
>> <prefixToZipFileToUnzipSecond>, ...
>
> Thanks a lot, problem solved.
> Is this information documented somewhere outside the source code?
>
> -Urs
Re: Pascal: Packager doesn't honor order given in maps [message #573512 is a reply to message #3821] Fri, 16 February 2007 14:46 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
Hi Urs,

This can be solved by setting the following properties in the
packaging.properties file
unzipOrder=<prefixToZipFileToUnzipFirst>,
<prefixToZipFileToUnzipSecond>, ...

Please also post these questions on pde-build-dev as I only check the
newsgroup once a day

PaScaL


"Urs Reupke" <ureupke@innoopract.com> wrote in message
news:er3tph$sus$1@utils.eclipse.org...
> Pascal,
>
> as I wrote elsewhere, I am assisting Markus with the packaging component.
>
> Thanks for suggesting the PDE Packager as a basis for EPP.
> The tool performs most of the required tasks as required by this project,
> but just now, I have come across a problem I believe I cannot solve by
> pre- or post-processing.
>
> I am assembling the packages from three components - the Eclipse RCP drops
> provided on the downloads page as "root" files, the requested features
> downloaded from an update site, and a user-specified config.ini.
> A custom config.ini is required, since the RCP drops come unconfigured.
> To this end, I am creating a map file referencing the root files, a .zip
> of the downloaded features, and another zip containing nothing but the
> configuration file.
> Packager then should take those files and work its magic, but alas, it
> succeeds only in part. The FetchFileGenerator reads the contents of the
> map file to a Properties object, which is essentially a HashMap, and thus
> the order of iteration is not the order of insertion - which leads to some
> root-file-archives being extracted after the config.ini-archive, thus
> overwriting the custom file.
>
> Could you advise me as to whether there is a more appropriate approach to
> the custom config problem or whether we could change the packager so that
> it honored the order given in the map file?
>
> Thanks a lot
> -Urs
Re: Pascal: Packager doesn't honor order given in maps [message #573583 is a reply to message #3828] Mon, 19 February 2007 08:01 Go to previous message
Urs Reupke is currently offline Urs ReupkeFriend
Messages: 8
Registered: July 2009
Junior Member
Pascal Rapicault wrote:
> This can be solved by setting the following properties in the
> packaging.properties file
> unzipOrder=<prefixToZipFileToUnzipFirst>,
> <prefixToZipFileToUnzipSecond>, ...

Thanks a lot, problem solved.
Is this information documented somewhere outside the source code?

-Urs
Re: Pascal: Packager doesn't honor order given in maps [message #573656 is a reply to message #3841] Tue, 20 February 2007 02:49 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 440
Registered: July 2009
Senior Member
No. I have opened a bug to capture this lack of doc
PaScaL

"Urs Reupke" <ureupke@innoopract.com> wrote in message
news:erblh4$rst$1@utils.eclipse.org...
> Pascal Rapicault wrote:
>> This can be solved by setting the following properties in the
>> packaging.properties file
>> unzipOrder=<prefixToZipFileToUnzipFirst>,
>> <prefixToZipFileToUnzipSecond>, ...
>
> Thanks a lot, problem solved.
> Is this information documented somewhere outside the source code?
>
> -Urs
Previous Topic:Pascal: Packager doesn't honor order given in maps
Next Topic:Strawman package proposal for Java Developer
Goto Forum:
  


Current Time: Thu Apr 25 00:52:22 GMT 2024

Powered by FUDForum. Page generated in 0.03354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top