Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java
index 487bc5c31..91c272725 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/p2/metadata/generator/EclipseInstallGeneratorInfoProvider.java
@@ -38,6 +38,13 @@ public class EclipseInstallGeneratorInfoProvider implements IGeneratorInfo {
private static final String ORG_ECLIPSE_EQUINOX_SIMPLECONFIGURATOR_MANIPULATOR = "org.eclipse.equinox.simpleconfigurator.manipulator"; //$NON-NLS-1$
private static final String ORG_ECLIPSE_EQUINOX_FRAMEWORKADMIN_EQUINOX = "org.eclipse.equinox.frameworkadmin.equinox"; //$NON-NLS-1$
+ /*
+ * TODO: Temporary for determining whether eclipse installs
+ * in a profile should support backward compatibility
+ * with update manager.
+ */
+ private static final String UPDATE_COMPATIBILITY = "eclipse.p2.update.compatibility"; //$NON-NLS-1$
+
private static String os;
/**
@@ -72,6 +79,7 @@ public class EclipseInstallGeneratorInfoProvider implements IGeneratorInfo {
private IMetadataRepository metadataRepository;
private boolean publishArtifactRepo = false;
private boolean publishArtifacts = false;
+ private boolean updateCompatibility = Boolean.valueOf(System.getProperty(UPDATE_COMPATIBILITY, "false")).booleanValue(); //$NON-NLS-1$
private String rootId;
private String rootVersion;
@@ -254,6 +262,10 @@ public class EclipseInstallGeneratorInfoProvider implements IGeneratorInfo {
return admin;
}
+ public boolean getIsUpdateCompatible() {
+ return updateCompatibility;
+ }
+
private Collection getIUs(Set ius, String prefix) {
Set result = new HashSet();
for (Iterator iterator = ius.iterator(); iterator.hasNext();) {
@@ -380,6 +392,10 @@ public class EclipseInstallGeneratorInfoProvider implements IGeneratorInfo {
flavor = value;
}
+ public void setIsUpdateCompatible(boolean isCompatible) {
+ this.updateCompatibility = isCompatible;
+ }
+
public void setLauncherConfig(String value) {
launcherConfig = value;
}

Back to the top