Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-16 11:36:01 +0000
committerEike Stepper2011-12-16 11:36:01 +0000
commit18500fcec4f0d83b912b11909b0e634c9cd78d53 (patch)
treef7334328b0659b978a493aa9144d6cd84fe1c79d
parent40c08725c746b4907a723290866f3073abe1baea (diff)
downloadcdo-18500fcec4f0d83b912b11909b0e634c9cd78d53.tar.gz
cdo-18500fcec4f0d83b912b11909b0e634c9cd78d53.tar.xz
cdo-18500fcec4f0d83b912b11909b0e634c9cd78d53.zip
Helper for updating the project plan
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java72
1 files changed, 72 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java
new file mode 100644
index 0000000000..80f0f8664b
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c) 2004 - 2011 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.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Properties;
+
+/**
+ * @author Eike Stepper
+ */
+public class PrintReleaseDeliverablesForPlan
+{
+ public static void main(String[] args) throws IOException
+ {
+ List<String> lines = new ArrayList<String>();
+ for (File featureFolder : new File("../../features").listFiles())
+ {
+ String folderName = featureFolder.getName();
+ if (folderName.equals("org.eclipse.emf.cdo.site-feature")
+ || folderName.equals("org.eclipse.emf.cdo.license-feature"))
+ {
+ continue;
+ }
+
+ File propertiesFile = new File(featureFolder, "feature.properties");
+ FileReader reader = null;
+
+ try
+ {
+ reader = new FileReader(propertiesFile);
+
+ Properties properties = new Properties();
+ properties.load(reader);
+
+ String name = properties.getProperty("featureName");
+ String description = properties.getProperty("description");
+
+ lines.add(" <html:li><html:b>" + name + "</html:b> (" + description + ")</html:li>");
+ }
+ finally
+ {
+ if (reader != null)
+ {
+ reader.close();
+ }
+ }
+ }
+
+ Collections.sort(lines);
+
+ System.out.println("<html:ul>");
+ for (String line : lines)
+ {
+ System.out.println(line);
+ }
+
+ System.out.println("</html:ul>");
+ }
+}

Back to the top