@@ -71,16 +71,14 @@ <h3 id="repository">Eclipse p2 Repository
7171 </ h3 >
7272 < p >
7373 To update your Eclipse installation to this development stream, you can use the software repository at
74+ < br >
75+ < code > < a class ="data-ref " href ="${updatesP2RepositoryComposite} "> ${updatesP2RepositoryComposite}</ a > </ code >
7476 </ p >
75- < ul >
76- < li > < a class ="data-ref " href ="https://download.eclipse.org/eclipse/updates/${releaseShort}/ "> https://download.eclipse.org/eclipse/updates/${releaseShort}</ a > </ li >
77- </ ul >
7877 < p >
7978 To update your build to use this specific build, you can use the software repository at
79+ < br >
80+ < code > < a class ="data-ref " href ="${updatesP2Repository} "> ${updatesP2Repository}</ a > </ code >
8081 </ p >
81- < ul >
82- < li > < a class ="data-ref " href ="https://download.eclipse.org/eclipse/updates/${releaseShort}/${identifier}/ "> https://download.eclipse.org/eclipse/updates/${releaseShort}/${identifier}</ a > </ li >
83- </ ul >
8482 < table class ="files-table " data-path ="p2Repository "> </ table >
8583
8684 < h3 id ="eclipse-sdk "> Eclipse SDK
@@ -110,7 +108,22 @@ <h3 id="swt">SWT Binary and Source
110108
111109 </ main >
112110 < script >
113- loadPageData ( 'buildproperties.json' )
111+ loadPageData ( 'buildproperties.json' , data => {
112+ data . updatesP2RepositoryComposite = `https://download.eclipse.org/eclipse/updates/${ data . releaseShort } `
113+ const buildID = data . identifier
114+ const buildType = buildID . charAt ( 0 )
115+ if ( buildType == 'I' || buildType == 'Y' ) {
116+ data . updatesP2RepositoryComposite += `-${ buildType } -builds`
117+ }
118+ if ( buildType == 'S' ) {
119+ data . updatesP2RepositoryComposite += `-I-builds`
120+ const timestamp = buildID . substring ( buildID . lastIndexOf ( '-' ) + 1 , buildID . length )
121+ data . updatesP2Repository = `${ data . updatesP2RepositoryComposite } /I${ timestamp . substring ( 0 , 8 ) } -${ timestamp . substring ( 8 , 12 ) } `
122+ } else {
123+ data . updatesP2Repository = `${ data . updatesP2RepositoryComposite } /${ buildID } `
124+ }
125+ return data
126+ } )
114127
115128 contentPostProcessor = ( mainElement , build ) => {
116129 document . title = `${ build . label } - ${ document . title } `
0 commit comments