Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'production/miscToolsAndNotes/updaterepo/updateGenericComposites.xml')
-rw-r--r--production/miscToolsAndNotes/updaterepo/updateGenericComposites.xml104
1 files changed, 104 insertions, 0 deletions
diff --git a/production/miscToolsAndNotes/updaterepo/updateGenericComposites.xml b/production/miscToolsAndNotes/updaterepo/updateGenericComposites.xml
new file mode 100644
index 000000000..a487f1beb
--- /dev/null
+++ b/production/miscToolsAndNotes/updaterepo/updateGenericComposites.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2015 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ David Williams - initial API and implementation
+-->
+
+<project
+ default="updateGenericComposites"
+ basedir=".">
+
+ <!--
+ updateGenericComposites is a utilty to use once a year or so,
+ when ever a new release is started.
+ It must be ran from "antRunner appliction"
+
+ -->
+ <target name="updateGenericComposites">
+
+ <fail
+ unless="currentStream"
+ message="currentStream (such as '4.6') must be defined for this script" />
+ <fail
+ unless="maintenanceStream"
+ message="maintenanceStream (such as '4.5') must be defined for this script" />
+
+ <!-- Note: we do not put stream number in 'name', since once a 'name' is defined
+ in Eclipse's UI, it does not change. -->
+ <updatecomposite
+ repotocreate="/home/data/httpd/download.eclipse.org/eclipse/updates/I-builds"
+ repotopointto="http://download.eclipse.org/eclipse/updates/${currentStream}-I-builds/"
+ reponame="Eclipse Project current integration builds repository" />
+ <updatecomposite
+ repotocreate="/home/data/httpd/download.eclipse.org/eclipse/updates/N-builds"
+ repotopointto="http://download.eclipse.org/eclipse/updates/${currentStream}-N-builds/"
+ reponame="Eclipse Project current nightly builds repository" />
+ <updatecomposite
+ repotocreate="/home/data/httpd/download.eclipse.org/eclipse/updates/milestones"
+ repotopointto="http://download.eclipse.org/eclipse/updates/${currentStream}milestones/"
+ reponame="Eclipse Project current milestone builds repository" />
+ <updatecomposite
+ repotocreate="/home/data/httpd/download.eclipse.org/eclipse/updates/M-builds"
+ repotopointto="http://download.eclipse.org/eclipse/updates/${maintenanceStream}-M-builds/"
+ reponame="Eclipse Project maintenance builds repository" />
+
+ </target>
+
+ <!--
+ macro to create a "generic" composite site, that simply points to
+ annohter repository.
+
+ repoToCreate must be an absolute file path directory,
+ that is writeable.
+
+ repoToPointTo can be any repo, but must be in "full form", such as
+ http://download.eclipse.org/eclipse/updates/${currentStream}milestones/
+
+ -->
+ <macrodef name="updatecomposite">
+ <attribute name="repoToCreate" />
+ <attribute name="repoToPointTo" />
+ <attribute name="reponame" />
+ <sequential>
+ <!-- delete it, if already exists -->
+ <delete
+ dir="@{repoToCreate}"
+ failonerror="false" />
+ <!-- create it -->
+ <mkdir dir="@{repoToCreate}" />
+ <!-- now add the one child -->
+ <echo message="(re)creating repostory: @{repoToCreate}" />
+ <echo message="adding child repository: @{repoToPointTo}" />
+ <p2.composite.repository>
+ <repository location="file://@{repoToCreate}" name="@{reponame}"/>
+ <add location="@{repoToPointTo}" />
+ </p2.composite.repository>
+
+ <local name="p2IndexFilename" />
+ <property
+ name="p2IndexFilename"
+ value="@{repoToCreate}/p2.index" />
+ <echo message="creating p2.index file" />
+ <echo
+ file="${p2IndexFilename}"
+ message="version=1${line.separator}" />
+ <echo
+ file="${p2IndexFilename}"
+ append="true"
+ message="metadata.repository.factory.order=compositeContent.xml,!${line.separator}" />
+ <echo
+ file="${p2IndexFilename}"
+ append="true"
+ message="artifact.repository.factory.order=compositeArtifacts.xml,!${line.separator}" />
+
+ </sequential>
+ </macrodef>
+
+</project>
+

Back to the top