Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Stevenson2007-11-11 23:23:08 +0000
committerDave Stevenson2007-11-11 23:23:08 +0000
commit91b236391e355fd498b73ebddedbeffeb711ba5a (patch)
treee61cf844ad1522968ff15074ff0876a90baa5998 /bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java
parentcc19d8a1b7499fd48119aba3f57031c78ca5fa28 (diff)
downloadrt.equinox.p2-91b236391e355fd498b73ebddedbeffeb711ba5a.tar.gz
rt.equinox.p2-91b236391e355fd498b73ebddedbeffeb711ba5a.tar.xz
rt.equinox.p2-91b236391e355fd498b73ebddedbeffeb711ba5a.zip
Implemented mechanism for nested profiles: added list of child profiles to Profile class. Adapted profile registry parser to changes. Added junit tests for new profile features and profile persistence.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java
new file mode 100644
index 000000000..51254642b
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/ProfileXMLConstants.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.internal.p2.engine;
+
+import org.eclipse.equinox.internal.p2.persistence.XMLConstants;
+import org.eclipse.osgi.service.resolver.VersionRange;
+import org.osgi.framework.Version;
+
+/**
+ * Constants defining the structure of the XML for a Profile
+ */
+public interface ProfileXMLConstants extends XMLConstants {
+
+ // A format version number for profile XML.
+ public static final String XML_CURRENT = "0.0.2"; //$NON-NLS-1$
+ public static final Version CURRENT_VERSION = new Version(XML_CURRENT);
+ public static final String XML_COMPATIBLE = "0.0.1"; //$NON-NLS-1$
+ public static final Version COMPATIBLE_VERSION = new Version(XML_CURRENT);
+ public static final VersionRange XML_TOLERANCE = new VersionRange(COMPATIBLE_VERSION, true, CURRENT_VERSION, true);
+
+ // Constants for profile elements
+ public static final String PROFILES_ELEMENT = "profiles"; //$NON-NLS-1$
+ public static final String PROFILE_ELEMENT = "profile"; //$NON-NLS-1$
+
+}

Back to the top