mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
bug 318581: Use of deprecated org.eclipse.core.runtime.PluginVersionIdentifier discontinued.
Patch from Petri Tuononen.
This commit is contained in:
parent
f9860d7005
commit
aa7a3e8243
35 changed files with 145 additions and 134 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: Tests
|
Bundle-Name: Tests
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core.tests; singleton:=true
|
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-Activator: org.eclipse.cdt.managedbuilder.testplugin.CTestPlugin
|
||||||
Bundle-Vendor: Eclipse CDT
|
Bundle-Vendor: Eclipse CDT
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.core.resources.IResourceDelta;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.MultiStatus;
|
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,
|
public boolean isSupported(IToolChain toolChain, Version version, String instance) {
|
||||||
PluginVersionIdentifier version,
|
|
||||||
String instance) {
|
|
||||||
if ("One".equals(toolChain.getParent().getName())) return supported[0]; //$NON-NLS-1$
|
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 ("Two".equals(toolChain.getParent().getName())) return supported[1]; //$NON-NLS-1$
|
||||||
if ("Three".equals(toolChain.getParent().getName())) return supported[2]; //$NON-NLS-1$
|
if ("Three".equals(toolChain.getParent().getName())) return supported[2]; //$NON-NLS-1$
|
||||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.core; singleton:=true
|
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-Activator: org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.managedbuilder.core;
|
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.
|
* @noextend This class is not intended to be subclassed by clients.
|
||||||
|
@ -24,7 +24,9 @@ public interface IBuildObject {
|
||||||
public String getId();
|
public String getId();
|
||||||
public String getName();
|
public String getName();
|
||||||
public String getBaseId();
|
public String getBaseId();
|
||||||
public PluginVersionIdentifier getVersion();
|
/** @since 8.0 */
|
||||||
public void setVersion(PluginVersionIdentifier version);
|
public Version getVersion();
|
||||||
|
/** @since 8.0 */
|
||||||
|
public void setVersion(Version version);
|
||||||
public String getManagedBuildRevision();
|
public String getManagedBuildRevision();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.managedbuilder.core;
|
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 {
|
public interface IManagedIsToolChainSupported {
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @return <code>true</code> if the given tool-chain is supported on the system
|
* @return <code>true</code> if the given tool-chain is supported on the system
|
||||||
* otherwise returns <code>false</code>
|
* otherwise returns <code>false</code>
|
||||||
|
*
|
||||||
|
* @since 8.0
|
||||||
*/
|
*/
|
||||||
public boolean isSupported(IToolChain toolChain,
|
public boolean isSupported(IToolChain toolChain, Version version, String instance);
|
||||||
PluginVersionIdentifier version,
|
|
||||||
String instance);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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.Status;
|
||||||
import org.eclipse.core.runtime.SubProgressMonitor;
|
import org.eclipse.core.runtime.SubProgressMonitor;
|
||||||
import org.eclipse.core.runtime.URIUtil;
|
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.IWorkbenchWindow;
|
||||||
import org.eclipse.ui.PlatformUI;
|
import org.eclipse.ui.PlatformUI;
|
||||||
import org.osgi.framework.Bundle;
|
import org.osgi.framework.Bundle;
|
||||||
import org.osgi.framework.Version;
|
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
|
@ -194,7 +193,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
private static final String ALL = "all"; //$NON-NLS-1$
|
private static final String ALL = "all"; //$NON-NLS-1$
|
||||||
|
|
||||||
// This is the version of the manifest and project files
|
// 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 final Version version = new Version(4, 0, 0);
|
||||||
private static Map depCalculatorsMap;
|
private static Map depCalculatorsMap;
|
||||||
private static boolean projectTypesLoaded = false;
|
private static boolean projectTypesLoaded = false;
|
||||||
|
@ -1950,7 +1949,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
|
|
||||||
private static boolean isVersionCompatible(IExtension extension) {
|
private static boolean isVersionCompatible(IExtension extension) {
|
||||||
// We can ignore the qualifier
|
// We can ignore the qualifier
|
||||||
PluginVersionIdentifier version = null;
|
Version version = null;
|
||||||
|
|
||||||
// Get the version of the manifest
|
// Get the version of the manifest
|
||||||
IConfigurationElement[] elements = extension.getConfigurationElements();
|
IConfigurationElement[] elements = extension.getConfigurationElements();
|
||||||
|
@ -1958,7 +1957,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
// Find the version string in the manifest
|
// Find the version string in the manifest
|
||||||
for (IConfigurationElement element : elements) {
|
for (IConfigurationElement element : elements) {
|
||||||
if (element.getName().equals(REVISION_ELEMENT_NAME)) {
|
if (element.getName().equals(REVISION_ELEMENT_NAME)) {
|
||||||
version = new PluginVersionIdentifier(element.getAttribute(VERSION_ELEMENT_NAME));
|
version = new Version(element.getAttribute(VERSION_ELEMENT_NAME));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1967,7 +1966,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
// This is a 1.2 manifest and we are compatible for now
|
// This is a 1.2 manifest and we are compatible for now
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return(buildInfoVersion.isGreaterOrEqualTo(version));
|
return(buildInfoVersion.compareTo(version)>=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2011,8 +2010,9 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
} else {
|
} else {
|
||||||
// Make sure that the version is compatible with the manager
|
// Make sure that the version is compatible with the manager
|
||||||
fileVersion = rootElement.getNodeValue();
|
fileVersion = rootElement.getNodeValue();
|
||||||
PluginVersionIdentifier version = new PluginVersionIdentifier(fileVersion);
|
Version version = new Version(fileVersion);
|
||||||
if (buildInfoVersion.isGreaterThan(version)) {
|
//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
|
// This is >= 2.0 project, but earlier than the current MBS version - it may need to be updated
|
||||||
} else {
|
} else {
|
||||||
// This is a
|
// This is a
|
||||||
|
@ -2020,7 +2020,22 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
// o The major versions are not equal
|
// o The major versions are not equal
|
||||||
// o The major versions are equal, but the remainder of the .cdtbuild version # is
|
// o The major versions are equal, but the remainder of the .cdtbuild version # is
|
||||||
// greater than the MBS version #
|
// 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()));
|
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);
|
buildInfo = new ManagedBuildInfo(project, XmlStorageUtil.createCStorageTree((Element)node), true, fileVersion);
|
||||||
if (fileVersion != null) {
|
if (fileVersion != null) {
|
||||||
// buildInfo.setVersion(fileVersion);
|
// buildInfo.setVersion(fileVersion);
|
||||||
PluginVersionIdentifier version = new PluginVersionIdentifier(fileVersion);
|
Version version = new Version(fileVersion);
|
||||||
PluginVersionIdentifier version21 = new PluginVersionIdentifier("2.1"); //$NON-NLS-1$
|
Version version21 = new Version("2.1"); //$NON-NLS-1$
|
||||||
// CDT 2.1 is the first version using the new MBS model
|
// 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,
|
// Check to see if all elements could be loaded correctly - for example,
|
||||||
// if references in the project file could not be resolved to extension
|
// if references in the project file could not be resolved to extension
|
||||||
// elements
|
// elements
|
||||||
|
@ -3007,8 +3022,9 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
* Answers the current version of the managed builder plugin.
|
* Answers the current version of the managed builder plugin.
|
||||||
*
|
*
|
||||||
* @return 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;
|
return buildInfoVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3179,7 +3195,7 @@ public class ManagedBuildManager extends AbstractCExtension {
|
||||||
if ( index != -1) {
|
if ( index != -1) {
|
||||||
// Get the version number from tool id.
|
// Get the version number from tool id.
|
||||||
String version = idAndVersion.substring(index+1);
|
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 there is a valid version then return 'version'
|
||||||
if ( status.isOK())
|
if ( status.isOK())
|
||||||
|
|
|
@ -14,14 +14,14 @@ package org.eclipse.cdt.managedbuilder.internal.core;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IBuildObject;
|
import org.eclipse.cdt.managedbuilder.core.IBuildObject;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class BuildObject implements IBuildObject {
|
public class BuildObject implements IBuildObject {
|
||||||
|
|
||||||
protected String id;
|
protected String id;
|
||||||
protected String name;
|
protected String name;
|
||||||
|
|
||||||
protected PluginVersionIdentifier version = null;
|
protected Version version = null;
|
||||||
protected String managedBuildRevision = null;
|
protected String managedBuildRevision = null;
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -69,14 +69,14 @@ public class BuildObject implements IBuildObject {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param version The version to set.
|
* @param version The version to set.
|
||||||
*/
|
*/
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
this.version = version;
|
this.version = version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ public class BuildObject implements IBuildObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersionFromId() {
|
public Version getVersionFromId() {
|
||||||
String versionNumber;
|
String versionNumber;
|
||||||
IStatus status = null;
|
IStatus status = null;
|
||||||
|
|
||||||
|
@ -100,12 +100,12 @@ public class BuildObject implements IBuildObject {
|
||||||
// So get the default version based on 'managedBuildRevision' attribute.
|
// So get the default version based on 'managedBuildRevision' attribute.
|
||||||
|
|
||||||
if ( getManagedBuildRevision() != null) {
|
if ( getManagedBuildRevision() != null) {
|
||||||
PluginVersionIdentifier tmpManagedBuildRevision = new PluginVersionIdentifier( getManagedBuildRevision() );
|
Version tmpManagedBuildRevision = new Version( getManagedBuildRevision() );
|
||||||
if (tmpManagedBuildRevision.isEquivalentTo(new PluginVersionIdentifier("1.2.0")) ) //$NON-NLS-1$
|
if (tmpManagedBuildRevision.equals(new Version("1.2.0")) ) //$NON-NLS-1$
|
||||||
versionNumber = "0.0.1"; //$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$
|
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$
|
versionNumber = "0.0.3"; //$NON-NLS-1$
|
||||||
else
|
else
|
||||||
versionNumber = "0.0.4"; //$NON-NLS-1$
|
versionNumber = "0.0.4"; //$NON-NLS-1$
|
||||||
|
@ -113,7 +113,7 @@ public class BuildObject implements IBuildObject {
|
||||||
versionNumber = "0.0.0"; //$NON-NLS-1$
|
versionNumber = "0.0.0"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new PluginVersionIdentifier(versionNumber);
|
return new Version(versionNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setManagedBuildRevision(String managedBuildRevision) {
|
public void setManagedBuildRevision(String managedBuildRevision) {
|
||||||
|
|
|
@ -66,9 +66,9 @@ import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
|
||||||
import org.eclipse.core.variables.IStringVariableManager;
|
import org.eclipse.core.variables.IStringVariableManager;
|
||||||
import org.eclipse.core.variables.VariablesPlugin;
|
import org.eclipse.core.variables.VariablesPlugin;
|
||||||
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider, IRealBuildObjectAssociation {
|
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$
|
String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$
|
||||||
|
|
||||||
for (int j = 0; j < tmpVersions.length; j++) {
|
for (int j = 0; j < tmpVersions.length; j++) {
|
||||||
if (new PluginVersionIdentifier(version)
|
if (new Version(version).equals(new Version(
|
||||||
.equals(new PluginVersionIdentifier(
|
|
||||||
tmpVersions[j]))) {
|
tmpVersions[j]))) {
|
||||||
// version is supported.
|
// version is supported.
|
||||||
// Do the automatic conversion without
|
// Do the automatic conversion without
|
||||||
|
@ -1604,13 +1603,11 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider,
|
||||||
// If it matches
|
// If it matches
|
||||||
String mbsVersion = element
|
String mbsVersion = element
|
||||||
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
||||||
PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
|
Version currentMbsVersion = ManagedBuildManager
|
||||||
.getBuildInfoVersion();
|
.getBuildInfoVersion();
|
||||||
|
|
||||||
// set the converter element based on the MbsVersion
|
// set the converter element based on the MbsVersion
|
||||||
if (currentMbsVersion
|
if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
|
||||||
.isGreaterThan(new PluginVersionIdentifier(
|
|
||||||
mbsVersion))) {
|
|
||||||
previousMbsVersionConversionElement = element;
|
previousMbsVersionConversionElement = element;
|
||||||
} else {
|
} else {
|
||||||
currentMbsVersionConversionElement = element;
|
currentMbsVersionConversionElement = element;
|
||||||
|
|
|
@ -89,7 +89,7 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
import org.osgi.service.prefs.Preferences;
|
import org.osgi.service.prefs.Preferences;
|
||||||
|
|
||||||
public class Configuration extends BuildObject implements IConfiguration, IBuildPropertiesRestriction, IBuildPropertyChangeListener, IRealBuildObjectAssociation {
|
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.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( rootFolderInfo.getToolChain() != null) {
|
if ( rootFolderInfo.getToolChain() != null) {
|
||||||
return rootFolderInfo.getToolChain().getVersion();
|
return rootFolderInfo.getToolChain().getVersion();
|
||||||
|
@ -1856,7 +1856,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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.IContentType;
|
||||||
import org.eclipse.core.runtime.content.IContentTypeManager;
|
import org.eclipse.core.runtime.content.IContentTypeManager;
|
||||||
|
|
||||||
|
@ -1593,7 +1593,7 @@ public class InputType extends BuildObject implements IInputType {
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -1603,7 +1603,7 @@ public class InputType extends BuildObject implements IInputType {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
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 {
|
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.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if (version == null) {
|
if (version == null) {
|
||||||
if ( getProjectType() != null) {
|
if ( getProjectType() != null) {
|
||||||
return getProjectType().getVersion();
|
return getProjectType().getVersion();
|
||||||
|
@ -504,7 +504,7 @@ public class ManagedProject extends BuildObject implements IManagedProject, IBui
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class represents a set of configurations
|
* This class represents a set of configurations
|
||||||
|
@ -1071,7 +1071,7 @@ public class MultiConfiguration extends MultiItemsHolder implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
|
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if (DEBUG)
|
if (DEBUG)
|
||||||
System.out.println("Strange multi access: MultiConfiguration.getVersion()"); //$NON-NLS-1$
|
System.out.println("Strange multi access: MultiConfiguration.getVersion()"); //$NON-NLS-1$
|
||||||
return curr().getVersion();
|
return curr().getVersion();
|
||||||
|
@ -1080,7 +1080,7 @@ public class MultiConfiguration extends MultiItemsHolder implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#setVersion(org.eclipse.core.runtime.PluginVersionIdentifier)
|
* @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)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObjectPropertiesContainer#getBuildProperties()
|
* @see org.eclipse.cdt.managedbuilder.core.IBuildObjectPropertiesContainer#getBuildProperties()
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
||||||
import org.eclipse.core.runtime.IPath;
|
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
|
* This class holds a number of IResourceInfo objects
|
||||||
|
@ -352,14 +352,14 @@ public abstract class MultiResourceInfo extends MultiItemsHolder implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
|
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#getVersion()
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
return fRis[curr].getVersion();
|
return fRis[curr].getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IBuildObject#setVersion(org.eclipse.core.runtime.PluginVersionIdentifier)
|
* @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; i<fRis.length; i++)
|
for (int i=0; i<fRis.length; i++)
|
||||||
fRis[i].setVersion(version);
|
fRis[i].setVersion(version);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ import org.eclipse.cdt.managedbuilder.internal.macros.OptionContextData;
|
||||||
import org.eclipse.cdt.managedbuilder.macros.IOptionContextData;
|
import org.eclipse.cdt.managedbuilder.macros.IOptionContextData;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IConfigurationElement;
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class Option extends BuildObject implements IOption, IBuildPropertiesRestriction {
|
public class Option extends BuildObject implements IOption, IBuildPropertiesRestriction {
|
||||||
// Static default return values
|
// Static default return values
|
||||||
|
@ -2272,7 +2272,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -2282,7 +2282,7 @@ public class Option extends BuildObject implements IOption, IBuildPropertiesRest
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -469,7 +469,7 @@ public class OptionCategory extends BuildObject implements IOptionCategory {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getOptionHolder() != null) {
|
if ( getOptionHolder() != null) {
|
||||||
return getOptionHolder().getVersion();
|
return getOptionHolder().getVersion();
|
||||||
|
@ -478,7 +478,7 @@ public class OptionCategory extends BuildObject implements IOptionCategory {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
||||||
import org.eclipse.cdt.managedbuilder.macros.IOptionContextData;
|
import org.eclipse.cdt.managedbuilder.macros.IOptionContextData;
|
||||||
import org.eclipse.core.runtime.IConfigurationElement;
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
|
@ -863,11 +863,11 @@ public class OptionReference implements IOption {
|
||||||
public void setContextId(String contextId) {
|
public void setContextId(String contextId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
return option.getVersion();
|
return option.getVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
option.setVersion(version);
|
option.setVersion(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IConfigurationElement;
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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.IContentType;
|
||||||
import org.eclipse.core.runtime.content.IContentTypeManager;
|
import org.eclipse.core.runtime.content.IContentTypeManager;
|
||||||
|
|
||||||
|
@ -875,7 +875,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -884,7 +884,7 @@ public class OutputType extends BuildObject implements IOutputType {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.IExtension;
|
import org.eclipse.core.runtime.IExtension;
|
||||||
import org.eclipse.core.runtime.IExtensionPoint;
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
|
|
||||||
public class ProjectType extends BuildObject implements IProjectType, IBuildPropertiesRestriction, IBuildPropertyChangeListener {
|
public class ProjectType extends BuildObject implements IProjectType, IBuildPropertiesRestriction, IBuildPropertyChangeListener {
|
||||||
|
@ -648,13 +648,11 @@ public class ProjectType extends BuildObject implements IProjectType, IBuildProp
|
||||||
// If it matches
|
// If it matches
|
||||||
String mbsVersion = element
|
String mbsVersion = element
|
||||||
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
||||||
PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
|
Version currentMbsVersion = ManagedBuildManager
|
||||||
.getBuildInfoVersion();
|
.getBuildInfoVersion();
|
||||||
|
|
||||||
// set the converter element based on the MbsVersion
|
// set the converter element based on the MbsVersion
|
||||||
if (currentMbsVersion
|
if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
|
||||||
.isGreaterThan(new PluginVersionIdentifier(
|
|
||||||
mbsVersion))) {
|
|
||||||
previousMbsVersionConversionElement = element;
|
previousMbsVersionConversionElement = element;
|
||||||
} else {
|
} else {
|
||||||
currentMbsVersionConversionElement = element;
|
currentMbsVersionConversionElement = element;
|
||||||
|
|
|
@ -39,7 +39,7 @@ import org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildLanguageData;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
|
|
||||||
|
@ -829,7 +829,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -838,7 +838,7 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer;
|
import org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedBuildCPathEntryContainer;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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.Document;
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
|
@ -1164,7 +1164,7 @@ public class Target extends BuildObject implements ITarget {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -1173,7 +1173,7 @@ public class Target extends BuildObject implements ITarget {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.managedbuilder.core.ITargetPlatform;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildTargetPlatformData;
|
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 {
|
public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
|
|
||||||
|
@ -606,7 +606,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
/**
|
/**
|
||||||
* @return Returns the version.
|
* @return Returns the version.
|
||||||
*/
|
*/
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
if ( version == null) {
|
if ( version == null) {
|
||||||
if ( getParent() != null) {
|
if ( getParent() != null) {
|
||||||
return getParent().getVersion();
|
return getParent().getVersion();
|
||||||
|
@ -615,7 +615,7 @@ public class TargetPlatform extends BuildObject implements ITargetPlatform {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,6 @@ import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IStatus;
|
import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
|
||||||
import org.eclipse.core.runtime.Status;
|
import org.eclipse.core.runtime.Status;
|
||||||
import org.eclipse.core.runtime.content.IContentType;
|
import org.eclipse.core.runtime.content.IContentType;
|
||||||
import org.eclipse.core.runtime.content.IContentTypeSettings;
|
import org.eclipse.core.runtime.content.IContentTypeSettings;
|
||||||
|
@ -3206,11 +3205,11 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
||||||
// If it matches
|
// If it matches
|
||||||
String mbsVersion = element
|
String mbsVersion = element
|
||||||
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
||||||
PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
|
Version currentMbsVersion = ManagedBuildManager
|
||||||
.getBuildInfoVersion();
|
.getBuildInfoVersion();
|
||||||
|
|
||||||
// set the converter element based on the MbsVersion
|
// set the converter element based on the MbsVersion
|
||||||
if (currentMbsVersion.isGreaterThan(new PluginVersionIdentifier(mbsVersion))) {
|
if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
|
||||||
previousMbsVersionConversionElement = element;
|
previousMbsVersionConversionElement = element;
|
||||||
} else {
|
} else {
|
||||||
currentMbsVersionConversionElement = element;
|
currentMbsVersionConversionElement = element;
|
||||||
|
|
|
@ -55,7 +55,7 @@ import org.eclipse.core.runtime.IExtension;
|
||||||
import org.eclipse.core.runtime.IExtensionPoint;
|
import org.eclipse.core.runtime.IExtensionPoint;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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 {
|
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$
|
String[] tmpVersions = versionsSupported.split(","); //$NON-NLS-1$
|
||||||
|
|
||||||
for (int j = 0; j < tmpVersions.length; j++) {
|
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.
|
// version is supported.
|
||||||
// Do the automatic conversion without
|
// Do the automatic conversion without
|
||||||
// prompting the user.
|
// prompting the user.
|
||||||
|
@ -2006,13 +2006,11 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
|
||||||
// If it matches
|
// If it matches
|
||||||
String mbsVersion = element
|
String mbsVersion = element
|
||||||
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
.getAttribute("mbsVersion"); //$NON-NLS-1$
|
||||||
PluginVersionIdentifier currentMbsVersion = ManagedBuildManager
|
Version currentMbsVersion = ManagedBuildManager
|
||||||
.getBuildInfoVersion();
|
.getBuildInfoVersion();
|
||||||
|
|
||||||
// set the converter element based on the MbsVersion
|
// set the converter element based on the MbsVersion
|
||||||
if (currentMbsVersion
|
if (currentMbsVersion.compareTo(new Version(mbsVersion))>0) {
|
||||||
.isGreaterThan(new PluginVersionIdentifier(
|
|
||||||
mbsVersion))) {
|
|
||||||
previousMbsVersionConversionElement = element;
|
previousMbsVersionConversionElement = element;
|
||||||
} else {
|
} else {
|
||||||
currentMbsVersionConversionElement = element;
|
currentMbsVersionConversionElement = element;
|
||||||
|
|
|
@ -39,7 +39,7 @@ import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGenerator;
|
||||||
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGeneratorType;
|
import org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGeneratorType;
|
||||||
import org.eclipse.core.runtime.IConfigurationElement;
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
import org.eclipse.core.runtime.IPath;
|
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.Document;
|
||||||
import org.w3c.dom.Element;
|
import org.w3c.dom.Element;
|
||||||
import org.w3c.dom.Node;
|
import org.w3c.dom.Node;
|
||||||
|
@ -1239,11 +1239,11 @@ public class ToolReference implements IToolReference {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ import org.eclipse.cdt.utils.cdtvariables.IVariableSubstitutor;
|
||||||
import org.eclipse.core.resources.IWorkspace;
|
import org.eclipse.core.resources.IWorkspace;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
import org.osgi.framework.Bundle;
|
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());
|
macro = new BuildMacro(macroName,IBuildMacro.VALUE_TEXT,cfg.getToolChain().getVersion().toString());
|
||||||
}
|
}
|
||||||
else if("BuilderVersion".equals(macroName)){ //$NON-NLS-1$
|
else if("BuilderVersion".equals(macroName)){ //$NON-NLS-1$
|
||||||
PluginVersionIdentifier version = cfg.getToolChain().getBuilder().getVersion();
|
Version version = cfg.getToolChain().getBuilder().getVersion();
|
||||||
if(version != null)
|
if(version != null)
|
||||||
macro = new BuildMacro(macroName,IBuildMacro.VALUE_TEXT,version.toString());
|
macro = new BuildMacro(macroName,IBuildMacro.VALUE_TEXT,version.toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.core.runtime.IStatus;
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.OperationCanceledException;
|
import org.eclipse.core.runtime.OperationCanceledException;
|
||||||
import org.eclipse.core.runtime.Path;
|
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.Status;
|
||||||
import org.eclipse.core.runtime.jobs.ISchedulingRule;
|
import org.eclipse.core.runtime.jobs.ISchedulingRule;
|
||||||
import org.eclipse.ui.dialogs.IOverwriteQuery;
|
import org.eclipse.ui.dialogs.IOverwriteQuery;
|
||||||
|
@ -111,21 +111,24 @@ public class UpdateManagedProjectManager {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
static protected PluginVersionIdentifier getManagedBuildInfoVersion(String version){
|
/**
|
||||||
|
* @since 8.0
|
||||||
|
*/
|
||||||
|
static protected Version getManagedBuildInfoVersion(String version){
|
||||||
if(version == null)
|
if(version == null)
|
||||||
version = "1.2"; //$NON-NLS-1$
|
version = "1.2"; //$NON-NLS-1$
|
||||||
return new PluginVersionIdentifier(version);
|
return new Version(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public boolean isCompatibleProject(IManagedBuildInfo info) {
|
static public boolean isCompatibleProject(IManagedBuildInfo info) {
|
||||||
if(info == null)
|
if(info == null)
|
||||||
return false;
|
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 true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -308,7 +311,7 @@ public class UpdateManagedProjectManager {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
PluginVersionIdentifier version = getManagedBuildInfoVersion(info.getVersion());
|
Version version = getManagedBuildInfoVersion(info.getVersion());
|
||||||
|
|
||||||
boolean shouldUpdate;
|
boolean shouldUpdate;
|
||||||
if(fUpdateProjectQuery != null)
|
if(fUpdateProjectQuery != null)
|
||||||
|
@ -327,23 +330,23 @@ public class UpdateManagedProjectManager {
|
||||||
if(projectFile.exists())
|
if(projectFile.exists())
|
||||||
backupFile(projectFile, "_initial", monitor, fProject); //$NON-NLS-1$
|
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);
|
UpdateManagedProject12.doProjectUpdate(monitor, fProject);
|
||||||
version = getManagedBuildInfoVersion(info.getVersion());
|
version = getManagedBuildInfoVersion(info.getVersion());
|
||||||
}
|
}
|
||||||
if(version.isEquivalentTo(new PluginVersionIdentifier(2,0,0))){
|
if(version.equals(new Version(2,0,0))){
|
||||||
UpdateManagedProject20.doProjectUpdate(monitor, fProject);
|
UpdateManagedProject20.doProjectUpdate(monitor, fProject);
|
||||||
version = getManagedBuildInfoVersion(info.getVersion());
|
version = getManagedBuildInfoVersion(info.getVersion());
|
||||||
}
|
}
|
||||||
if(version.isEquivalentTo(new PluginVersionIdentifier(2,1,0))){
|
if(version.equals(new Version(2,1,0))){
|
||||||
UpdateManagedProject21.doProjectUpdate(monitor, fProject);
|
UpdateManagedProject21.doProjectUpdate(monitor, fProject);
|
||||||
version = getManagedBuildInfoVersion(info.getVersion());
|
version = getManagedBuildInfoVersion(info.getVersion());
|
||||||
}
|
}
|
||||||
if(version.isEquivalentTo(new PluginVersionIdentifier(3,0,0))){
|
if(version.equals(new Version(3,0,0))){
|
||||||
UpdateManagedProject30.doProjectUpdate(monitor, fProject);
|
UpdateManagedProject30.doProjectUpdate(monitor, fProject);
|
||||||
version = getManagedBuildInfoVersion(info.getVersion());
|
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);
|
UpdateManagedProject31.doProjectUpdate(monitor, fProject);
|
||||||
version = getManagedBuildInfoVersion(info.getVersion());
|
version = getManagedBuildInfoVersion(info.getVersion());
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,14 +2,14 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.gnu.ui; singleton:=true
|
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-Activator: org.eclipse.cdt.managedbuilder.gnu.ui.GnuUIPlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
Export-Package: org.eclipse.cdt.managedbuilder.gnu.cygwin,
|
Export-Package: org.eclipse.cdt.managedbuilder.gnu.cygwin,
|
||||||
org.eclipse.cdt.managedbuilder.gnu.ui
|
org.eclipse.cdt.managedbuilder.gnu.ui
|
||||||
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0.0)",
|
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.cdt.core;bundle-version="[5.0.0,6.0.0)",
|
||||||
org.eclipse.core.resources
|
org.eclipse.core.resources
|
||||||
Bundle-ActivationPolicy: lazy
|
Bundle-ActivationPolicy: lazy
|
||||||
|
|
|
@ -18,7 +18,7 @@ import java.io.IOException;
|
||||||
|
|
||||||
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
|
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
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
|
* This class implements the IManagedIsToolChainSupported for the Gnu Cygwin tool-chain
|
||||||
|
@ -44,8 +44,10 @@ public class IsGnuCygwinToolChainSupported implements
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported#isSupported(org.eclipse.cdt.managedbuilder.core.IToolChain, org.eclipse.core.runtime.PluginVersionIdentifier, java.lang.String)
|
* @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;
|
if (suppChecked) return toolchainIsSupported;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ package org.eclipse.cdt.managedbuilder.gnu.mingw;
|
||||||
|
|
||||||
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
|
import org.eclipse.cdt.managedbuilder.core.IManagedIsToolChainSupported;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Doug Schaefer
|
* @author Doug Schaefer
|
||||||
|
@ -29,8 +29,7 @@ public class MingwIsToolChainSupported implements IManagedIsToolChainSupported {
|
||||||
supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
|
supported = MingwEnvironmentVariableSupplier.getBinDir() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSupported(IToolChain toolChain,
|
public boolean isSupported(IToolChain toolChain, Version version, String instance) {
|
||||||
PluginVersionIdentifier version, String instance) {
|
|
||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: Managed Build UI Tests Plug-in
|
Bundle-Name: Managed Build UI Tests Plug-in
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.ui.tests; singleton:=true
|
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-Activator: org.eclipse.cdt.managedbuilder.ui.tests.testplugin.TestsPlugin
|
||||||
Bundle-Vendor: Eclipse CDT
|
Bundle-Vendor: Eclipse CDT
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -34,7 +34,7 @@ import org.eclipse.cdt.managedbuilder.macros.IConfigurationBuildMacroSupplier;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class TestConfiguration implements IConfiguration {
|
public class TestConfiguration implements IConfiguration {
|
||||||
|
|
||||||
|
@ -518,12 +518,12 @@ public class TestConfiguration implements IConfiguration {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
import org.eclipse.cdt.managedbuilder.core.OptionStringValue;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class TestFolderInfo implements IFolderInfo {
|
public class TestFolderInfo implements IFolderInfo {
|
||||||
|
|
||||||
|
@ -222,12 +222,12 @@ public class TestFolderInfo implements IFolderInfo {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ import org.eclipse.cdt.managedbuilder.core.IConfigurationNameProvider;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IProjectType;
|
import org.eclipse.cdt.managedbuilder.core.IProjectType;
|
||||||
import org.eclipse.cdt.managedbuilder.envvar.IProjectEnvironmentVariableSupplier;
|
import org.eclipse.cdt.managedbuilder.envvar.IProjectEnvironmentVariableSupplier;
|
||||||
import org.eclipse.cdt.managedbuilder.macros.IProjectBuildMacroSupplier;
|
import org.eclipse.cdt.managedbuilder.macros.IProjectBuildMacroSupplier;
|
||||||
import org.eclipse.core.runtime.PluginVersionIdentifier;
|
import org.osgi.framework.Version;
|
||||||
|
|
||||||
public class TestProjectType implements IProjectType {
|
public class TestProjectType implements IProjectType {
|
||||||
private IConfiguration[] cfgs = new IConfiguration[1];
|
private IConfiguration[] cfgs = new IConfiguration[1];
|
||||||
|
@ -49,8 +49,8 @@ public class TestProjectType implements IProjectType {
|
||||||
public String getId() { return null; }
|
public String getId() { return null; }
|
||||||
public String getManagedBuildRevision() { return null; }
|
public String getManagedBuildRevision() { return null; }
|
||||||
public String getName() { return null; }
|
public String getName() { return null; }
|
||||||
public PluginVersionIdentifier getVersion() { return null; }
|
public Version getVersion() { return null; }
|
||||||
public void setVersion(PluginVersionIdentifier version) {}
|
public void setVersion(Version version) {}
|
||||||
public IBuildObjectProperties getBuildProperties() { return null; }
|
public IBuildObjectProperties getBuildProperties() { return null; }
|
||||||
|
|
||||||
public IBuildPropertyValue getBuildArtefactType() {
|
public IBuildPropertyValue getBuildArtefactType() {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.cdt.managedbuilder.core.IToolChain;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions;
|
import org.eclipse.cdt.managedbuilder.internal.core.HoldsOptions;
|
||||||
import org.eclipse.cdt.managedbuilder.envvar.IConfigurationEnvironmentVariableSupplier;
|
import org.eclipse.cdt.managedbuilder.envvar.IConfigurationEnvironmentVariableSupplier;
|
||||||
import org.eclipse.cdt.managedbuilder.macros.IConfigurationBuildMacroSupplier;
|
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 {
|
public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
|
|
||||||
|
@ -38,12 +38,12 @@ public class TestToolchain extends HoldsOptions implements IToolChain {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginVersionIdentifier getVersion() {
|
public Version getVersion() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVersion(PluginVersionIdentifier version) {
|
public void setVersion(Version version) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.ui;bundle-version="[3.2.0,4.0.0)",
|
||||||
org.eclipse.cdt.core;bundle-version="[5.0.0,6.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.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.runtime;bundle-version="[3.2.0,4.0.0)",
|
||||||
org.eclipse.core.variables;bundle-version="[3.1.100,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,
|
org.eclipse.ui.navigator;bundle-version="[3.2.0,4.0.0)";resolution:=optional,
|
||||||
|
|
Loading…
Add table
Reference in a new issue