Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 265708 - Could WTP produce a zipped update site/p2 repo?
Summary: Could WTP produce a zipped update site/p2 repo?
Status: RESOLVED FIXED
Alias: None
Product: WTP Releng
Classification: WebTools
Component: releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.10.0   Edit
Assignee: David Williams CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 264868
  Show dependency tree
 
Reported: 2009-02-20 15:40 EST by Paul Webster CLA
Modified: 2018-06-29 15:27 EDT (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 Paul Webster CLA 2009-02-20 15:40:58 EST
I created a p2 repo zip from wtp-wst-sdk-S-3.1M5-20090206233640.zip for e4 build consumption.

Would it be possible for wtp to produce a zipped update site/p2 repo?  Preferrably 2, once for wtp-wst-sdk and one for wtp-sdk?

Thanx in advance,
PW
Comment 1 David Williams CLA 2009-02-20 22:55:17 EST
Gee, for GEF you gave step by step directions :) 

I don't think "wtp-sdk" and "wst-sdk" are the right units, but yes, I'd like to be a trail blazer with zipped repos. 
Comment 2 Paul Webster CLA 2009-02-21 07:23:22 EST
(In reply to comment #1)
> Gee, for GEF you gave step by step directions :) 
> 

I meant no disrespect :-)  I don't know how useful that is for builds, since it was a manual step in a shell script (not an ant task, although I hope there would be one) but I wrote it down anyway.

PW
Comment 3 David Williams CLA 2009-03-14 03:33:47 EDT
Paul, a few questions. 

1. Is it ok if the zipped repositories contain "pack.gz" files only? 
Or are jars also required? I'd prefer the former, since that seems to be the real savings in size and band width. But, I'm not sure how advanced the receiving technologies are yet. I assume the "receiving technologies" for zipped repositories is both PDE build, and also users/committers who want to download an 'install' into the installed Eclipse? 

2. Is a "P2 map file" also required for this to be useful for PDE Builds? 
Or, is that only required when _not_ using a zipped archive? 

3. Regardless of the answer for '2', I'd like to know ... if we are to create a P2 map file, that can and should contain features entries as well as plugin entries ... right? (I am planning to create a P2 map file ... even if that's not part of your request, per se). 



Comment 4 Paul Webster CLA 2009-03-14 05:59:54 EDT
(In reply to comment #3)
> Paul, a few questions. 
> 
> 1. Is it ok if the zipped repositories contain "pack.gz" files only? 

I thought I heard that JRE 1.4.2 installs can't deal with pack200 files, so if that's in the repo then it will only work for >1.4.2.  John, do I remember that correctly?

> 2. Is a "P2 map file" also required for this to be useful for PDE Builds? 
> Or, is that only required when _not_ using a zipped archive? 
> 
> 3. Regardless of the answer for '2', I'd like to know ... if we are to create a
> P2 map file, that can and should contain features entries as well as plugin
> entries ... right? (I am planning to create a P2 map file ... even if that's
> not part of your request, per se). 

The repos will need to have a content.xml and artifact.xml (or jars, etc) if that's what you mean.  The repo that PDE build currently creates for me has:
content.xml
artifacts.xml
plugins/*.jar
features/*.jar

It looks very similar to an update site (AFAICT) just without the site.xml (although I've seen site.xml included in some repos as well)

PW

Comment 5 John Arthorne CLA 2009-03-16 09:42:54 EDT
>I thought I heard that JRE 1.4.2 installs can't deal with pack200 files, so if
>that's in the repo then it will only work for >1.4.2.  John, do I remember that
>correctly?

Yes. For WTP that may not be important since it already requires Java 5. In fact it might be a good thing that a user running 1.4.2 wouldn't be able to install WTP...
Comment 6 David Williams CLA 2009-03-18 21:56:40 EDT
What, exactly, from WTP are you using in E4, anyway? JavaScript? XML? JSP? 


For our M6, I produced various zipped p2 repositories. Full list at the bottom of our download page. See 
http://download.eclipse.org/webtools/downloads/drops/R3.1/S-3.1M6-20090318020101/

You'll probably want the "jst-sdk" one. 


These all happen to contain jars. I had packed ones for a while, but very expensive computation ... I'll need to figure out how to do more efficiently (or, after the main build, or something). They are 50% smaller, so would be worth some effort. 

The names and content structure of these will change for M7, but hopefully you can try out our M6 version and see if it works. 

I'll leave this bug open until we get our final form. 


Comment 7 Paul Webster CLA 2009-03-19 07:29:00 EDT
(In reply to comment #6)
> What, exactly, from WTP are you using in E4, anyway? JavaScript? XML? JSP? 

It's the XML Editor and tools, it is used by the XWT (declarative SWT) tooling.

PW
Comment 8 Paul Webster CLA 2009-03-19 08:19:37 EDT
(In reply to comment #6)
> What, exactly, from WTP are you using in E4, anyway? JavaScript? XML? JSP? 
> 

I've grabbed wst-sdk-buildrepo-S-3.1M6-20090318020101.zip and added it to our build.  Everything built fine :-)

PW
Comment 9 Paul Webster CLA 2009-05-07 08:19:22 EDT
I just picked up the M7 wst repo as well. Thanx.


It shows up on the main download page but not on the committer pages.  Are the sites generated when they're promoted off of http://build.eclipse.org/webtools/committers/ ?

PW
Comment 10 David Williams CLA 2009-05-07 08:28:14 EDT
(In reply to comment #9)

> 
> It shows up on the main download page but not on the committer pages.  Are the
> sites generated when they're promoted off of
> http://build.eclipse.org/webtools/committers/ ?
> 

No. They are always there ... produced every build .... but I haven't "fixed" the automatic download page to automatically include the display URL and added that URL 'by hand'. Mostly just because I still want to change the actual zips produced, and improve the page display. 
Comment 11 David Williams CLA 2009-06-21 22:11:24 EDT
We've done all we're going to do this release, leaving the list of several at bottom of download page. 

Next release, we'll be changing the names and level of granularity.