Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-06-12 07:05:50 +0000
committerEike Stepper2012-06-12 07:05:50 +0000
commitff20a871fcccd2f60569a1e77044d64e06b58703 (patch)
tree65e5385f019d43ec0a78780530aefec4a6f456ce /plugins
parent2afb0a75fca0150e048a2fb8e068e4ede00cec74 (diff)
downloadcdo-ff20a871fcccd2f60569a1e77044d64e06b58703.tar.gz
cdo-ff20a871fcccd2f60569a1e77044d64e06b58703.tar.xz
cdo-ff20a871fcccd2f60569a1e77044d64e06b58703.zip
Add missing plugins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/docs/release-checklist.txt3
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintUnpublishedComponents.java118
2 files changed, 121 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng/docs/release-checklist.txt b/plugins/org.eclipse.emf.cdo.releng/docs/release-checklist.txt
index 7dc04b50d6..233560a179 100644
--- a/plugins/org.eclipse.emf.cdo.releng/docs/release-checklist.txt
+++ b/plugins/org.eclipse.emf.cdo.releng/docs/release-checklist.txt
@@ -1,2 +1,5 @@
+- Execute org.eclipse.emf.cdo.releng.PrintReleaseDeliverablesForPlan
+- Execute org.eclipse.emf.cdo.releng.PrintUnpublishedComponents
+
- Adjust emf.link in /org.eclipse.emf.cdo.releng.doc/buildTemplate.ant
- Update /org.eclipse.emf.cdo.releng.doc/platform-api/package-list from ${TP}/plugins/org.eclipse.platform.doc.isv_???.jar
diff --git a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintUnpublishedComponents.java b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintUnpublishedComponents.java
new file mode 100644
index 0000000000..74d8ebd568
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintUnpublishedComponents.java
@@ -0,0 +1,118 @@
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.releng;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * @author Eike Stepper
+ */
+public class PrintUnpublishedComponents
+{
+ public static final String DROP = "I20120611-1348";
+
+ private static final Set<String> features = new HashSet<String>()
+ {
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public String toString()
+ {
+ return " (feature)";
+ }
+ };
+
+ private static final Set<String> plugins = new HashSet<String>()
+ {
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public String toString()
+ {
+ return " (plugin)";
+ }
+ };
+
+ public static void main(String[] args) throws IOException
+ {
+ initDrop();
+
+ checkComponents("../../features", features);
+ checkComponents("../../plugins", plugins);
+ }
+
+ private static void initDrop() throws MalformedURLException, IOException
+ {
+ URL url = new URL("http://download.eclipse.org/modeling/emf/cdo/drops/" + DROP + "/index.xml");
+ InputStream stream = url.openStream();
+
+ try
+ {
+ BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
+ String line;
+ while ((line = reader.readLine()) != null)
+ {
+ String prefix = "<element name=\"";
+ int start = line.indexOf(prefix);
+ if (start != -1)
+ {
+ line = line.substring(start + prefix.length());
+ if (line.endsWith("type=\"org.eclipse.update.feature\"/>"))
+ {
+ features.add(line.substring(0, line.indexOf('"')));
+ }
+ else if (line.endsWith("type=\"osgi.bundle\"/>"))
+ {
+ plugins.add(line.substring(0, line.indexOf('"')));
+ }
+ }
+ }
+ }
+ finally
+ {
+ if (stream != null)
+ {
+ stream.close();
+ }
+ }
+ }
+
+ private static void checkComponents(String folder, Set<String> publishedComponents)
+ {
+ for (File file : new File(folder).listFiles())
+ {
+ String id = file.getName();
+ if (id.equals("org.eclipse.emf.cdo.site-feature") || id.equals("org.eclipse.emf.cdo.license-feature"))
+ {
+ continue;
+ }
+
+ final String FEATURE_SUFFIX = "-feature";
+ if (id.endsWith(FEATURE_SUFFIX))
+ {
+ id = id.substring(0, id.length() - FEATURE_SUFFIX.length());
+ }
+
+ if (!publishedComponents.contains(id))
+ {
+ System.out.println(id + publishedComponents);
+ }
+ }
+ }
+}

Back to the top