diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.core.tests/META-INF/MANIFEST.MF
index 11e47c77c6a..1c125cede93 100644
--- a/build/org.eclipse.cdt.managedbuilder.core.tests/META-INF/MANIFEST.MF
+++ b/build/org.eclipse.cdt.managedbuilder.core.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core.tests; singleton:=true
-Bundle-Version: 7.0.0.qualifier
+Bundle-Version: 8.0.0.qualifier
Bundle-Activator: org.eclipse.cdt.managedbuilder.testplugin.CTestPlugin
Bundle-Vendor: Eclipse CDT
Bundle-Localization: plugin
diff --git a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/TestMacro.java b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/TestMacro.java
index b9191b21f19..9df2e7ab869 100644
--- a/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/TestMacro.java
+++ b/build/org.eclipse.cdt.managedbuilder.core.tests/tests/org/eclipse/cdt/managedbuilder/core/tests/TestMacro.java
@@ -34,7 +34,7 @@ import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.MultiStatus;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
*
@@ -206,9 +206,7 @@ public class TestMacro implements
/**
*
*/
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version,
- String instance) {
+ public boolean isSupported(IToolChain toolChain, Version version, String instance) {
if ("One".equals(toolChain.getParent().getName())) return supported[0]; //$NON-NLS-1$
if ("Two".equals(toolChain.getParent().getName())) return supported[1]; //$NON-NLS-1$
if ("Three".equals(toolChain.getParent().getName())) return supported[2]; //$NON-NLS-1$
diff --git a/build/org.eclipse.cdt.managedbuilder.core/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.core/META-INF/MANIFEST.MF
index 8d00ce31ff3..644e9e1eefb 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/META-INF/MANIFEST.MF
+++ b/build/org.eclipse.cdt.managedbuilder.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core; singleton:=true
-Bundle-Version: 7.0.0.qualifier
+Bundle-Version: 8.0.0.qualifier
Bundle-Activator: org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java
index a6b26473639..9d29f2962b6 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.core;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* @noextend This class is not intended to be subclassed by clients.
@@ -24,7 +24,9 @@ public interface IBuildObject {
public String getId();
public String getName();
public String getBaseId();
- public PluginVersionIdentifier getVersion();
- public void setVersion(PluginVersionIdentifier version);
+ /** @since 8.0 */
+ public Version getVersion();
+ /** @since 8.0 */
+ public void setVersion(Version version);
public String getManagedBuildRevision();
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedIsToolChainSupported.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedIsToolChainSupported.java
index 33126c849a6..48a9f718911 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedIsToolChainSupported.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedIsToolChainSupported.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.core;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
*
@@ -18,11 +18,10 @@ import org.eclipse.core.runtime.PluginVersionIdentifier;
*/
public interface IManagedIsToolChainSupported {
/**
- *
* @return true
if the given tool-chain is supported on the system
* otherwise returns false
+ *
+ * @since 8.0
*/
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version,
- String instance);
+ public boolean isSupported(IToolChain toolChain, Version version, String instance);
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
index d91efc4c202..45bb05e1dc2 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
@@ -122,7 +122,7 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.URIUtil;
@@ -132,7 +132,6 @@ import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.osgi.framework.Bundle;
-import org.osgi.framework.Version;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -194,7 +193,7 @@ public class ManagedBuildManager extends AbstractCExtension {
private static final String ALL = "all"; //$NON-NLS-1$
// This is the version of the manifest and project files
- private static final PluginVersionIdentifier buildInfoVersion = new PluginVersionIdentifier(4, 0, 0);
+ private static final Version buildInfoVersion = new Version(4, 0, 0);
private static final Version version = new Version(4, 0, 0);
private static Map depCalculatorsMap;
private static boolean projectTypesLoaded = false;
@@ -1950,7 +1949,7 @@ public class ManagedBuildManager extends AbstractCExtension {
private static boolean isVersionCompatible(IExtension extension) {
// We can ignore the qualifier
- PluginVersionIdentifier version = null;
+ Version version = null;
// Get the version of the manifest
IConfigurationElement[] elements = extension.getConfigurationElements();
@@ -1958,7 +1957,7 @@ public class ManagedBuildManager extends AbstractCExtension {
// Find the version string in the manifest
for (IConfigurationElement element : elements) {
if (element.getName().equals(REVISION_ELEMENT_NAME)) {
- version = new PluginVersionIdentifier(element.getAttribute(VERSION_ELEMENT_NAME));
+ version = new Version(element.getAttribute(VERSION_ELEMENT_NAME));
break;
}
}
@@ -1967,7 +1966,7 @@ public class ManagedBuildManager extends AbstractCExtension {
// This is a 1.2 manifest and we are compatible for now
return true;
}
- return(buildInfoVersion.isGreaterOrEqualTo(version));
+ return(buildInfoVersion.compareTo(version)>=0);
}
/**
@@ -2011,8 +2010,9 @@ public class ManagedBuildManager extends AbstractCExtension {
} else {
// Make sure that the version is compatible with the manager
fileVersion = rootElement.getNodeValue();
- PluginVersionIdentifier version = new PluginVersionIdentifier(fileVersion);
- if (buildInfoVersion.isGreaterThan(version)) {
+ Version version = new Version(fileVersion);
+ //if buildInfoVersion is greater than fileVersion
+ if (buildInfoVersion.compareTo(version)>0) {
// This is >= 2.0 project, but earlier than the current MBS version - it may need to be updated
} else {
// This is a
@@ -2020,7 +2020,22 @@ public class ManagedBuildManager extends AbstractCExtension {
// o The major versions are not equal
// o The major versions are equal, but the remainder of the .cdtbuild version # is
// greater than the MBS version #
- if (!buildInfoVersion.isCompatibleWith(version)) {
+ boolean compatible=false;
+ if (version == null)
+ compatible=false;
+ if (buildInfoVersion.getMajor() != version.getMajor())
+ compatible=false;
+ if (buildInfoVersion.getMinor() > version.getMinor())
+ compatible=true;
+ if (buildInfoVersion.getMinor() < version.getMinor())
+ compatible=false;
+ if (buildInfoVersion.getMicro() > version.getMicro())
+ compatible=true;
+ if (buildInfoVersion.getMicro() < version.getMicro())
+ compatible=false;
+ if (buildInfoVersion.getQualifier().compareTo(version.getQualifier()) >= 0)
+ compatible=true;
+ if (!compatible) {
throw new BuildException(ManagedMakeMessages.getFormattedString(PROJECT_VERSION_ERROR, project.getName()));
}
}
@@ -2035,10 +2050,10 @@ public class ManagedBuildManager extends AbstractCExtension {
buildInfo = new ManagedBuildInfo(project, XmlStorageUtil.createCStorageTree((Element)node), true, fileVersion);
if (fileVersion != null) {
// buildInfo.setVersion(fileVersion);
- PluginVersionIdentifier version = new PluginVersionIdentifier(fileVersion);
- PluginVersionIdentifier version21 = new PluginVersionIdentifier("2.1"); //$NON-NLS-1$
+ Version version = new Version(fileVersion);
+ Version version21 = new Version("2.1"); //$NON-NLS-1$
// CDT 2.1 is the first version using the new MBS model
- if (version.isGreaterOrEqualTo(version21)) {
+ if (version.compareTo(version21)>=0) {
// Check to see if all elements could be loaded correctly - for example,
// if references in the project file could not be resolved to extension
// elements
@@ -3007,8 +3022,9 @@ public class ManagedBuildManager extends AbstractCExtension {
* Answers the current version of the managed builder plugin.
*
* @return the current version of the managed builder plugin
+ * @since 8.0
*/
- public static PluginVersionIdentifier getBuildInfoVersion() {
+ public static Version getBuildInfoVersion() {
return buildInfoVersion;
}
@@ -3179,7 +3195,7 @@ public class ManagedBuildManager extends AbstractCExtension {
if ( index != -1) {
// Get the version number from tool id.
String version = idAndVersion.substring(index+1);
- IStatus status = PluginVersionIdentifier.validateVersion(version);
+ IStatus status = (IStatus) Version.parseVersion(version);
// If there is a valid version then return 'version'
if ( status.isOK())
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java
index f2905e14d8e..4aeff2e1cc3 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java
@@ -14,14 +14,14 @@ package org.eclipse.cdt.managedbuilder.internal.core;
import org.eclipse.cdt.managedbuilder.core.IBuildObject;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class BuildObject implements IBuildObject {
protected String id;
protected String name;
- protected PluginVersionIdentifier version = null;
+ protected Version version = null;
protected String managedBuildRevision = null;
/* (non-Javadoc)
@@ -69,14 +69,14 @@ public class BuildObject implements IBuildObject {
/**
* @return Returns the version.
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
return version;
}
/**
* @param version The version to set.
*/
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
this.version = version;
}
@@ -88,7 +88,7 @@ public class BuildObject implements IBuildObject {
}
- public PluginVersionIdentifier getVersionFromId() {
+ public Version getVersionFromId() {
String versionNumber;
IStatus status = null;
@@ -100,12 +100,12 @@ public class BuildObject implements IBuildObject {
// So get the default version based on 'managedBuildRevision' attribute.
if ( getManagedBuildRevision() != null) {
- PluginVersionIdentifier tmpManagedBuildRevision = new PluginVersionIdentifier( getManagedBuildRevision() );
- if (tmpManagedBuildRevision.isEquivalentTo(new PluginVersionIdentifier("1.2.0")) ) //$NON-NLS-1$
+ Version tmpManagedBuildRevision = new Version( getManagedBuildRevision() );
+ if (tmpManagedBuildRevision.equals(new Version("1.2.0")) ) //$NON-NLS-1$
versionNumber = "0.0.1"; //$NON-NLS-1$
- else if (tmpManagedBuildRevision.isEquivalentTo(new PluginVersionIdentifier("2.0.0")) ) //$NON-NLS-1$
+ else if (tmpManagedBuildRevision.equals(new Version("2.0.0")) ) //$NON-NLS-1$
versionNumber = "0.0.2"; //$NON-NLS-1$
- else if (tmpManagedBuildRevision.isEquivalentTo(new PluginVersionIdentifier("2.1.0")) ) //$NON-NLS-1$
+ else if (tmpManagedBuildRevision.equals(new Version("2.1.0")) ) //$NON-NLS-1$
versionNumber = "0.0.3"; //$NON-NLS-1$
else
versionNumber = "0.0.4"; //$NON-NLS-1$
@@ -113,7 +113,7 @@ public class BuildObject implements IBuildObject {
versionNumber = "0.0.0"; //$NON-NLS-1$
}
}
- return new PluginVersionIdentifier(versionNumber);
+ return new Version(versionNumber);
}
public void setManagedBuildRevision(String managedBuildRevision) {
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
index 297999f126f..5087bfd495b 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Builder.java
@@ -66,9 +66,9 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
import org.eclipse.core.variables.IStringVariableManager;
import org.eclipse.core.variables.VariablesPlugin;
+import org.osgi.framework.Version;
public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider, IRealBuildObjectAssociation {
@@ -1513,8 +1513,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$
for (int j = 0; j < tmpVersions.length; j++) {
- if (new PluginVersionIdentifier(version)
- .equals(new PluginVersionIdentifier(
+ if (new Version(version).equals(new Version(
tmpVersions[j]))) {
// version is supported.
// Do the automatic conversion without
@@ -1604,13 +1603,11 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
// If it matches
String mbsVersion = element
.getAttribute("mbsVersion"); //$NON-NLS-1$
- PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
+ Version currentMbsVersion = ManagedBuildManager
.getBuildInfoVersion();
// set the converter element based on the MbsVersion
- if (currentMbsVersion
- .isGreaterThan(new PluginVersionIdentifier(
- mbsVersion))) {
+ if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
previousMbsVersionConversionElement = element;
} else {
currentMbsVersionConversionElement = element;
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
index 789446b3617..89ba65c5afb 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
@@ -89,7 +89,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.osgi.service.prefs.Preferences;
public class Configuration extends BuildObject implements IConfiguration, IBuildPropertiesRestriction, IBuildPropertyChangeListener, IRealBuildObjectAssociation {
@@ -1847,7 +1847,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
/**
* @return Returns the version.
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if ( version == null) {
if ( rootFolderInfo.getToolChain() != null) {
return rootFolderInfo.getToolChain().getVersion();
@@ -1856,7 +1856,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
return version;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/InputType.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/InputType.java
index 793b0ec8c3e..fbfaee89fa0 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/InputType.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/InputType.java
@@ -38,7 +38,7 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.core.runtime.content.IContentTypeManager;
@@ -1593,7 +1593,7 @@ public class InputType extends BuildObject implements IInputType {
* @return Returns the version.
*/
@Override
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if ( version == null) {
if ( getParent() != null) {
return getParent().getVersion();
@@ -1603,7 +1603,7 @@ public class InputType extends BuildObject implements IInputType {
}
@Override
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedProject.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedProject.java
index bde873e156d..61cf5e0832b 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedProject.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedProject.java
@@ -35,7 +35,7 @@ import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class ManagedProject extends BuildObject implements IManagedProject, IBuildPropertiesRestriction, IBuildPropertyChangeListener {
@@ -494,7 +494,7 @@ public class ManagedProject extends BuildObject implements IManagedProject, IBui
* @return Returns the version.
*/
@Override
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if (version == null) {
if ( getProjectType() != null) {
return getProjectType().getVersion();
@@ -504,7 +504,7 @@ public class ManagedProject extends BuildObject implements IManagedProject, IBui
}
@Override
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiConfiguration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiConfiguration.java
index b7f697a63b0..bdd827c6816 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiConfiguration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiConfiguration.java
@@ -46,7 +46,7 @@ import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* This class represents a set of configurations
@@ -1071,7 +1071,7 @@ public class MultiConfiguration extends MultiItemsHolder implements
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if (DEBUG)
System.out.println("Strange multi access: MultiConfiguration.getVersion()"); //$NON-NLS-1$
return curr().getVersion();
@@ -1080,7 +1080,7 @@ public class MultiConfiguration extends MultiItemsHolder implements
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#setVersion(org.eclipse.core.runtime.PluginVersionIdentifier)
*/
- public void setVersion(PluginVersionIdentifier version) {} // do nothing
+ public void setVersion(Version version) {} // do nothing
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IBuildObjectPropertiesContainer#getBuildProperties()
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiResourceInfo.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiResourceInfo.java
index bb2a7600795..9c692f1bd12 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiResourceInfo.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MultiResourceInfo.java
@@ -23,7 +23,7 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* This class holds a number of IResourceInfo objects
@@ -352,14 +352,14 @@ public abstract class MultiResourceInfo extends MultiItemsHolder implements
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
return fRis[curr].getVersion();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#setVersion(org.eclipse.core.runtime.PluginVersionIdentifier)
*/
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
for (int i=0; i0) {
previousMbsVersionConversionElement = element;
} else {
currentMbsVersionConversionElement = element;
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceConfiguration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceConfiguration.java
index 4782bb981a6..cccef6254dc 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceConfiguration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceConfiguration.java
@@ -39,7 +39,7 @@ import org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildLanguageData;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
@@ -829,7 +829,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
/**
* @return Returns the version.
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if ( version == null) {
if ( getParent() != null) {
return getParent().getVersion();
@@ -838,7 +838,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
return version;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
index bc2b9d0f4d5..c87b7e277e6 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
@@ -34,7 +34,7 @@ import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -1164,7 +1164,7 @@ public class Target extends BuildObject implements ITarget {
/**
* @return Returns the version.
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if ( version == null) {
if ( getParent() != null) {
return getParent().getVersion();
@@ -1173,7 +1173,7 @@ public class Target extends BuildObject implements ITarget {
return version;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/TargetPlatform.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/TargetPlatform.java
index ad5e7ef58b9..9b261877c63 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/TargetPlatform.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/TargetPlatform.java
@@ -24,7 +24,7 @@ import org.eclipse.cdt.managedbuilder.core.ITargetPlatform;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildTargetPlatformData;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class TargetPlatform extends BuildObject implements ITargetPlatform {
@@ -606,7 +606,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
/**
* @return Returns the version.
*/
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
if ( version == null) {
if ( getParent() != null) {
return getParent().getVersion();
@@ -615,7 +615,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
return version;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// Do nothing
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
index 60040118ded..7f084eed028 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
@@ -79,7 +79,6 @@ import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.core.runtime.content.IContentTypeSettings;
@@ -3206,11 +3205,11 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
// If it matches
String mbsVersion = element
.getAttribute("mbsVersion"); //$NON-NLS-1$
- PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
+ Version currentMbsVersion = ManagedBuildManager
.getBuildInfoVersion();
// set the converter element based on the MbsVersion
- if (currentMbsVersion.isGreaterThan(new PluginVersionIdentifier(mbsVersion))) {
+ if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
previousMbsVersionConversionElement = element;
} else {
currentMbsVersionConversionElement = element;
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java
index ff04874eae3..edbbd71f238 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolChain.java
@@ -55,7 +55,7 @@ import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropertiesRestriction, IMatchKeyProvider, IRealBuildObjectAssociation {
@@ -1919,7 +1919,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$
for (int j = 0; j < tmpVersions.length; j++) {
- if (new PluginVersionIdentifier(version).equals(new PluginVersionIdentifier(tmpVersions[j]))) {
+ if (new Version(version).equals(new Version(tmpVersions[j]))) {
// version is supported.
// Do the automatic conversion without
// prompting the user.
@@ -2006,13 +2006,11 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
// If it matches
String mbsVersion = element
.getAttribute("mbsVersion"); //$NON-NLS-1$
- PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
+ Version currentMbsVersion = ManagedBuildManager
.getBuildInfoVersion();
// set the converter element based on the MbsVersion
- if (currentMbsVersion
- .isGreaterThan(new PluginVersionIdentifier(
- mbsVersion))) {
+ if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
previousMbsVersionConversionElement = element;
} else {
currentMbsVersionConversionElement = element;
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
index e13d7b85367..a7545c57a4e 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
@@ -39,7 +39,7 @@ import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGenerator;
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGeneratorType;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -1239,11 +1239,11 @@ public class ToolReference implements IToolReference {
return null;
}
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
return null;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// TODO Auto-generated method stub
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/MbsMacroSupplier.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/MbsMacroSupplier.java
index b5e76ec9baa..3b39d4a0393 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/MbsMacroSupplier.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/MbsMacroSupplier.java
@@ -43,7 +43,7 @@ import org.eclipse.cdt.utils.cdtvariables.IVariableSubstitutor;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.osgi.framework.Bundle;
/**
@@ -575,7 +575,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
macro = new BuildMacro(macroName,IBuildMacro.VALUE_TEXT,cfg.getToolChain().getVersion().toString());
}
else if("BuilderVersion".equals(macroName)){ //$NON-NLS-1$
- PluginVersionIdentifier version = cfg.getToolChain().getBuilder().getVersion();
+ Version version = cfg.getToolChain().getBuilder().getVersion();
if(version != null)
macro = new BuildMacro(macroName,IBuildMacro.VALUE_TEXT,version.toString());
}
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProjectManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProjectManager.java
index d790132cf95..37e55595dc9 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProjectManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/projectconverter/UpdateManagedProjectManager.java
@@ -34,7 +34,7 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.ui.dialogs.IOverwriteQuery;
@@ -111,21 +111,24 @@ public class UpdateManagedProjectManager {
return map;
}
- static protected PluginVersionIdentifier getManagedBuildInfoVersion(String version){
+ /**
+ * @since 8.0
+ */
+ static protected Version getManagedBuildInfoVersion(String version){
if(version == null)
version = "1.2"; //$NON-NLS-1$
- return new PluginVersionIdentifier(version);
+ return new Version(version);
}
static public boolean isCompatibleProject(IManagedBuildInfo info) {
if(info == null)
return false;
- PluginVersionIdentifier projVersion = getManagedBuildInfoVersion(info.getVersion());
+ Version projVersion = getManagedBuildInfoVersion(info.getVersion());
- PluginVersionIdentifier compVersion = ManagedBuildManager.getBuildInfoVersion();
+ Version compVersion = ManagedBuildManager.getBuildInfoVersion();
- if(compVersion.isEquivalentTo(projVersion))
+ if(compVersion.equals(projVersion))
return true;
return false;
}
@@ -308,7 +311,7 @@ public class UpdateManagedProjectManager {
}
});
- PluginVersionIdentifier version = getManagedBuildInfoVersion(info.getVersion());
+ Version version = getManagedBuildInfoVersion(info.getVersion());
boolean shouldUpdate;
if(fUpdateProjectQuery != null)
@@ -327,23 +330,23 @@ public class UpdateManagedProjectManager {
if(projectFile.exists())
backupFile(projectFile, "_initial", monitor, fProject); //$NON-NLS-1$
- if(version.isEquivalentTo(new PluginVersionIdentifier(1,2,0))){
+ if(version.equals(new Version(1,2,0))){
UpdateManagedProject12.doProjectUpdate(monitor, fProject);
version = getManagedBuildInfoVersion(info.getVersion());
}
- if(version.isEquivalentTo(new PluginVersionIdentifier(2,0,0))){
+ if(version.equals(new Version(2,0,0))){
UpdateManagedProject20.doProjectUpdate(monitor, fProject);
version = getManagedBuildInfoVersion(info.getVersion());
}
- if(version.isEquivalentTo(new PluginVersionIdentifier(2,1,0))){
+ if(version.equals(new Version(2,1,0))){
UpdateManagedProject21.doProjectUpdate(monitor, fProject);
version = getManagedBuildInfoVersion(info.getVersion());
}
- if(version.isEquivalentTo(new PluginVersionIdentifier(3,0,0))){
+ if(version.equals(new Version(3,0,0))){
UpdateManagedProject30.doProjectUpdate(monitor, fProject);
version = getManagedBuildInfoVersion(info.getVersion());
}
- if (new PluginVersionIdentifier(4,0,0).isGreaterThan(version)){
+ if (new Version(4,0,0).compareTo(version)>0){
UpdateManagedProject31.doProjectUpdate(monitor, fProject);
version = getManagedBuildInfoVersion(info.getVersion());
}
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF
index 26a7f93c40c..ce9a3b801a0 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF
@@ -2,14 +2,14 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.gnu.ui; singleton:=true
-Bundle-Version: 7.0.0.qualifier
+Bundle-Version: 8.0.0.qualifier
Bundle-Activator: org.eclipse.cdt.managedbuilder.gnu.ui.GnuUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.cdt.managedbuilder.gnu.cygwin,
org.eclipse.cdt.managedbuilder.gnu.ui
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
- org.eclipse.cdt.managedbuilder.core;bundle-version="[7.0.0,8.0.0)",
+ org.eclipse.cdt.managedbuilder.core;bundle-version="[8.0.0,9.0.0)",
org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)",
org.eclipse.core.resources
Bundle-ActivationPolicy: lazy
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
index f5f4c183b89..8e6356bbf0b 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/IsGnuCygwinToolChainSupported.java
@@ -18,7 +18,7 @@ import java.io.IOException;
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* This class implements the IManagedIsToolChainSupported for the Gnu Cygwin tool-chain
@@ -44,8 +44,10 @@ public class IsGnuCygwinToolChainSupported implements
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported#isSupported(org.eclipse.cdt.managedbuilder.core.IToolChain, org.eclipse.core.runtime.PluginVersionIdentifier, java.lang.String)
*/
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version, String instance) {
+ /**
+ * @since 8.0
+ */
+ public boolean isSupported(IToolChain toolChain, Version version, String instance) {
if (suppChecked) return toolchainIsSupported;
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
index 8e6b82ac43e..da46486a884 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/mingw/MingwIsToolChainSupported.java
@@ -13,7 +13,7 @@ package org.eclipse.cdt.managedbuilder.gnu.mingw;
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
/**
* @author Doug Schaefer
@@ -29,8 +29,7 @@ public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {
supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
}
- public boolean isSupported(IToolChain toolChain,
- PluginVersionIdentifier version, String instance) {
+ public boolean isSupported(IToolChain toolChain, Version version, String instance) {
return supported;
}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.ui.tests/META-INF/MANIFEST.MF
index 446c92c5f83..354829e1ab4 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui.tests/META-INF/MANIFEST.MF
+++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Managed Build UI Tests Plug-in
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.ui.tests; singleton:=true
-Bundle-Version: 7.0.0.qualifier
+Bundle-Version: 8.0.0.qualifier
Bundle-Activator: org.eclipse.cdt.managedbuilder.ui.tests.testplugin.TestsPlugin
Bundle-Vendor: Eclipse CDT
Bundle-Localization: plugin
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestConfiguration.java b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestConfiguration.java
index 5223b55ea26..1268a72db73 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestConfiguration.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestConfiguration.java
@@ -34,7 +34,7 @@ import org.eclipse.cdt.managedbuilder.macros.IConfigurationBuildMacroSupplier;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class TestConfiguration implements IConfiguration {
@@ -518,12 +518,12 @@ public class TestConfiguration implements IConfiguration {
return null;
}
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
// TODO Auto-generated method stub
return null;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// TODO Auto-generated method stub
}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestFolderInfo.java b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestFolderInfo.java
index eced6149ef5..2a7fe5a0e76 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestFolderInfo.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestFolderInfo.java
@@ -23,7 +23,7 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class TestFolderInfo implements IFolderInfo {
@@ -222,12 +222,12 @@ public class TestFolderInfo implements IFolderInfo {
return null;
}
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
// TODO Auto-generated method stub
return null;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// TODO Auto-generated method stub
}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestProjectType.java b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestProjectType.java
index ceb4dee3d53..dce604bf8b9 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestProjectType.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestProjectType.java
@@ -17,7 +17,7 @@ import org.eclipse.cdt.managedbuilder.core.IConfigurationNameProvider;
import org.eclipse.cdt.managedbuilder.core.IProjectType;
import org.eclipse.cdt.managedbuilder.envvar.IProjectEnvironmentVariableSupplier;
import org.eclipse.cdt.managedbuilder.macros.IProjectBuildMacroSupplier;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class TestProjectType implements IProjectType {
private IConfiguration[] cfgs = new IConfiguration[1];
@@ -49,8 +49,8 @@ public class TestProjectType implements IProjectType {
public String getId() { return null; }
public String getManagedBuildRevision() { return null; }
public String getName() { return null; }
- public PluginVersionIdentifier getVersion() { return null; }
- public void setVersion(PluginVersionIdentifier version) {}
+ public Version getVersion() { return null; }
+ public void setVersion(Version version) {}
public IBuildObjectProperties getBuildProperties() { return null; }
public IBuildPropertyValue getBuildArtefactType() {
diff --git a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestToolchain.java b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestToolchain.java
index 08fa5bfb49f..27e37de2f52 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestToolchain.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui.tests/src/org/eclipse/cdt/managedbuilder/ui/tests/util/TestToolchain.java
@@ -24,7 +24,7 @@ import org.eclipse.cdt.managedbuilder.core.IToolChain;
import org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions;
import org.eclipse.cdt.managedbuilder.envvar.IConfigurationEnvironmentVariableSupplier;
import org.eclipse.cdt.managedbuilder.macros.IConfigurationBuildMacroSupplier;
-import org.eclipse.core.runtime.PluginVersionIdentifier;
+import org.osgi.framework.Version;
public class TestToolchain extends HoldsOptions implements IToolChain {
@@ -38,12 +38,12 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
return null;
}
- public PluginVersionIdentifier getVersion() {
+ public Version getVersion() {
// TODO Auto-generated method stub
return null;
}
- public void setVersion(PluginVersionIdentifier version) {
+ public void setVersion(Version version) {
// TODO Auto-generated method stub
}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.ui/META-INF/MANIFEST.MF
index 892ae28e7ea..afef76d89fa 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/META-INF/MANIFEST.MF
+++ b/build/org.eclipse.cdt.managedbuilder.ui/META-INF/MANIFEST.MF
@@ -16,7 +16,7 @@ Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.2.0,4.0.0)",
org.eclipse.ui;bundle-version="[3.2.0,4.0.0)",
org.eclipse.cdt.core;bundle-version="[5.0.0,6.0.0)",
org.eclipse.cdt.ui;bundle-version="[5.0.0,6.0.0)",
- org.eclipse.cdt.managedbuilder.core;bundle-version="[7.0.0,8.0.0)",
+ org.eclipse.cdt.managedbuilder.core;bundle-version="[8.0.0,9.0.0)",
org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
org.eclipse.core.variables;bundle-version="[3.1.100,4.0.0)",
org.eclipse.ui.navigator;bundle-version="[3.2.0,4.0.0)";resolution:=optional,