mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cleanup, avoid creating unnecessary copies of strings
This commit is contained in:
parent
1f8ea23acb
commit
32fc5f5d3f
1 changed files with 31 additions and 229 deletions
|
@ -30,7 +30,6 @@ import org.eclipse.cdt.core.ErrorParserManager;
|
||||||
import org.eclipse.cdt.core.settings.model.CSourceEntry;
|
import org.eclipse.cdt.core.settings.model.CSourceEntry;
|
||||||
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
||||||
import org.eclipse.cdt.core.settings.model.ICExternalSetting;
|
import org.eclipse.cdt.core.settings.model.ICExternalSetting;
|
||||||
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
|
|
||||||
import org.eclipse.cdt.core.settings.model.ICLibraryPathEntry;
|
import org.eclipse.cdt.core.settings.model.ICLibraryPathEntry;
|
||||||
import org.eclipse.cdt.core.settings.model.ICOutputEntry;
|
import org.eclipse.cdt.core.settings.model.ICOutputEntry;
|
||||||
import org.eclipse.cdt.core.settings.model.ICSettingBase;
|
import org.eclipse.cdt.core.settings.model.ICSettingBase;
|
||||||
|
@ -47,6 +46,7 @@ import org.eclipse.cdt.managedbuilder.buildproperties.IBuildProperty;
|
||||||
import org.eclipse.cdt.managedbuilder.buildproperties.IBuildPropertyType;
|
import org.eclipse.cdt.managedbuilder.buildproperties.IBuildPropertyType;
|
||||||
import org.eclipse.cdt.managedbuilder.buildproperties.IBuildPropertyValue;
|
import org.eclipse.cdt.managedbuilder.buildproperties.IBuildPropertyValue;
|
||||||
import org.eclipse.cdt.managedbuilder.core.BuildException;
|
import org.eclipse.cdt.managedbuilder.core.BuildException;
|
||||||
|
import org.eclipse.cdt.managedbuilder.core.IBuildObject;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IBuildObjectProperties;
|
import org.eclipse.cdt.managedbuilder.core.IBuildObjectProperties;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IBuildPropertiesRestriction;
|
import org.eclipse.cdt.managedbuilder.core.IBuildPropertiesRestriction;
|
||||||
import org.eclipse.cdt.managedbuilder.core.IBuilder;
|
import org.eclipse.cdt.managedbuilder.core.IBuilder;
|
||||||
|
@ -493,21 +493,13 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
// Copy the remaining attributes
|
// Copy the remaining attributes
|
||||||
projectType = baseCfg.projectType;
|
projectType = baseCfg.projectType;
|
||||||
|
|
||||||
artifactName = baseCfg.artifactName;
|
artifactName = baseCfg.artifactName;
|
||||||
|
|
||||||
cleanCommand = baseCfg.cleanCommand;
|
cleanCommand = baseCfg.cleanCommand;
|
||||||
|
|
||||||
artifactExtension = baseCfg.artifactExtension;
|
artifactExtension = baseCfg.artifactExtension;
|
||||||
|
|
||||||
errorParserIds = baseCfg.errorParserIds;
|
errorParserIds = baseCfg.errorParserIds;
|
||||||
|
|
||||||
prebuildStep = baseCfg.prebuildStep;
|
prebuildStep = baseCfg.prebuildStep;
|
||||||
|
|
||||||
postbuildStep = baseCfg.postbuildStep;
|
postbuildStep = baseCfg.postbuildStep;
|
||||||
|
|
||||||
preannouncebuildStep = baseCfg.preannouncebuildStep;
|
preannouncebuildStep = baseCfg.preannouncebuildStep;
|
||||||
|
|
||||||
postannouncebuildStep = baseCfg.postannouncebuildStep;
|
postannouncebuildStep = baseCfg.postannouncebuildStep;
|
||||||
|
|
||||||
if(baseCfg.sourceEntries != null)
|
if(baseCfg.sourceEntries != null)
|
||||||
|
@ -558,7 +550,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
tp = new TargetPlatform(newChain, subId, tpBase.getName(), (TargetPlatform)tpBase);
|
tp = new TargetPlatform(newChain, subId, tpBase.getName(), (TargetPlatform)tpBase);
|
||||||
} else {
|
} else {
|
||||||
subId = ManagedBuildManager.calculateChildId(getId(), null);
|
subId = ManagedBuildManager.calculateChildId(getId(), null);
|
||||||
String subName = ""; //$NON-NLS-1$
|
String subName = EMPTY_STRING;
|
||||||
tp = new TargetPlatform((ToolChain)newChain, null, subId, subName, false);
|
tp = new TargetPlatform((ToolChain)newChain, null, subId, subName, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -625,8 +617,9 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
private void copySettingsFrom(Configuration cloneConfig, boolean cloneChildren){
|
private void copySettingsFrom(Configuration cloneConfig, boolean cloneChildren){
|
||||||
fCfgData = new BuildConfigurationData(this);
|
fCfgData = new BuildConfigurationData(this);
|
||||||
if(cloneConfig.buildProperties != null)
|
if(cloneConfig.buildProperties != null) {
|
||||||
this.buildProperties = new BuildObjectProperties(cloneConfig.buildProperties, this, this);
|
this.buildProperties = new BuildObjectProperties(cloneConfig.buildProperties, this, this);
|
||||||
|
}
|
||||||
|
|
||||||
this.description = cloneConfig.getDescription();
|
this.description = cloneConfig.getDescription();
|
||||||
|
|
||||||
|
@ -642,32 +635,17 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
// Copy the remaining attributes
|
// Copy the remaining attributes
|
||||||
projectType = cloneConfig.projectType;
|
projectType = cloneConfig.projectType;
|
||||||
if (cloneConfig.artifactName != null) {
|
artifactName = cloneConfig.artifactName;
|
||||||
artifactName = new String(cloneConfig.artifactName);
|
cleanCommand = cloneConfig.cleanCommand;
|
||||||
}
|
artifactExtension = cloneConfig.artifactExtension;
|
||||||
if (cloneConfig.cleanCommand != null) {
|
errorParserIds = cloneConfig.errorParserIds;
|
||||||
cleanCommand = new String(cloneConfig.cleanCommand);
|
prebuildStep = cloneConfig.prebuildStep;
|
||||||
}
|
postbuildStep = cloneConfig.postbuildStep;
|
||||||
if (cloneConfig.artifactExtension != null) {
|
preannouncebuildStep = cloneConfig.preannouncebuildStep;
|
||||||
artifactExtension = new String(cloneConfig.artifactExtension);
|
postannouncebuildStep = cloneConfig.postannouncebuildStep;
|
||||||
}
|
if(cloneConfig.sourceEntries != null) {
|
||||||
if (cloneConfig.errorParserIds != null) {
|
|
||||||
errorParserIds = new String(cloneConfig.errorParserIds);
|
|
||||||
}
|
|
||||||
if (cloneConfig.prebuildStep != null) {
|
|
||||||
prebuildStep = new String(cloneConfig.prebuildStep);
|
|
||||||
}
|
|
||||||
if (cloneConfig.postbuildStep != null) {
|
|
||||||
postbuildStep = new String(cloneConfig.postbuildStep);
|
|
||||||
}
|
|
||||||
if (cloneConfig.preannouncebuildStep != null) {
|
|
||||||
preannouncebuildStep = new String(cloneConfig.preannouncebuildStep);
|
|
||||||
}
|
|
||||||
if (cloneConfig.postannouncebuildStep != null) {
|
|
||||||
postannouncebuildStep = new String(cloneConfig.postannouncebuildStep);
|
|
||||||
}
|
|
||||||
if(cloneConfig.sourceEntries != null)
|
|
||||||
sourceEntries = cloneConfig.sourceEntries.clone();
|
sourceEntries = cloneConfig.sourceEntries.clone();
|
||||||
|
}
|
||||||
|
|
||||||
// enableInternalBuilder(cloneConfig.isInternalBuilderEnabled());
|
// enableInternalBuilder(cloneConfig.isInternalBuilderEnabled());
|
||||||
// setInternalBuilderIgnoreErr(cloneConfig.getInternalBuilderIgnoreErr());
|
// setInternalBuilderIgnoreErr(cloneConfig.getInternalBuilderIgnoreErr());
|
||||||
|
@ -764,10 +742,10 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
ManagedBuildManager.putConfigElement(this, element);
|
ManagedBuildManager.putConfigElement(this, element);
|
||||||
|
|
||||||
// id
|
// id
|
||||||
setId(SafeStringInterner.safeIntern(element.getAttribute(IConfiguration.ID)));
|
setId(SafeStringInterner.safeIntern(element.getAttribute(IBuildObject.ID)));
|
||||||
|
|
||||||
// name
|
// name
|
||||||
name = SafeStringInterner.safeIntern(element.getAttribute(IConfiguration.NAME));
|
name = SafeStringInterner.safeIntern(element.getAttribute(IBuildObject.NAME));
|
||||||
|
|
||||||
// description
|
// description
|
||||||
description = SafeStringInterner.safeIntern(element.getAttribute(IConfiguration.DESCRIPTION));
|
description = SafeStringInterner.safeIntern(element.getAttribute(IConfiguration.DESCRIPTION));
|
||||||
|
@ -818,11 +796,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
// id
|
// id
|
||||||
// note: IDs are unique so no benefit to intern them
|
// note: IDs are unique so no benefit to intern them
|
||||||
setId(element.getAttribute(IConfiguration.ID));
|
setId(element.getAttribute(IBuildObject.ID));
|
||||||
|
|
||||||
// name
|
// name
|
||||||
if (element.getAttribute(IConfiguration.NAME) != null)
|
if (element.getAttribute(IBuildObject.NAME) != null)
|
||||||
setName(SafeStringInterner.safeIntern(element.getAttribute(IConfiguration.NAME)));
|
setName(SafeStringInterner.safeIntern(element.getAttribute(IBuildObject.NAME)));
|
||||||
|
|
||||||
// description
|
// description
|
||||||
if (element.getAttribute(IConfiguration.DESCRIPTION) != null)
|
if (element.getAttribute(IConfiguration.DESCRIPTION) != null)
|
||||||
|
@ -903,10 +881,10 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
* Persist this configuration to project file.
|
* Persist this configuration to project file.
|
||||||
*/
|
*/
|
||||||
public void serialize(ICStorageElement element) {
|
public void serialize(ICStorageElement element) {
|
||||||
element.setAttribute(IConfiguration.ID, id);
|
element.setAttribute(IBuildObject.ID, id);
|
||||||
|
|
||||||
if (name != null)
|
if (name != null)
|
||||||
element.setAttribute(IConfiguration.NAME, name);
|
element.setAttribute(IBuildObject.NAME, name);
|
||||||
|
|
||||||
if (description != null)
|
if (description != null)
|
||||||
element.setAttribute(IConfiguration.DESCRIPTION, description);
|
element.setAttribute(IConfiguration.DESCRIPTION, description);
|
||||||
|
@ -972,17 +950,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
* P A R E N T A N D C H I L D H A N D L I N G
|
* P A R E N T A N D C H I L D H A N D L I N G
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getParent()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IConfiguration getParent() {
|
public IConfiguration getParent() {
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getOwner()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResource getOwner() {
|
public IResource getOwner() {
|
||||||
if (managedProject != null)
|
if (managedProject != null)
|
||||||
|
@ -992,25 +964,16 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getProjectType()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IProjectType getProjectType() {
|
public IProjectType getProjectType() {
|
||||||
return projectType;
|
return projectType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getManagedProject()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IManagedProject getManagedProject() {
|
public IManagedProject getManagedProject() {
|
||||||
return managedProject;
|
return managedProject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getToolChain(IToolChain, String, String, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IToolChain createToolChain(IToolChain superClass, String Id, String name, boolean isExtensionElement) {
|
public IToolChain createToolChain(IToolChain superClass, String Id, String name, boolean isExtensionElement) {
|
||||||
if(rootFolderInfo == null){
|
if(rootFolderInfo == null){
|
||||||
|
@ -1037,65 +1000,41 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getToolChain()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IToolChain getToolChain() {
|
public IToolChain getToolChain() {
|
||||||
return rootFolderInfo.getToolChain();
|
return rootFolderInfo.getToolChain();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getResourceConfigurations()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResourceConfiguration[] getResourceConfigurations() {
|
public IResourceConfiguration[] getResourceConfigurations() {
|
||||||
return (IResourceConfiguration[])rcInfos.getResourceInfos(ICSettingBase.SETTING_FILE, IResourceConfiguration.class);
|
return (IResourceConfiguration[])rcInfos.getResourceInfos(ICSettingBase.SETTING_FILE, IResourceConfiguration.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getResourceConfiguration(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IResourceConfiguration getResourceConfiguration(String resPath) {
|
public IResourceConfiguration getResourceConfiguration(String resPath) {
|
||||||
return rcInfos.getFileInfo(new Path(resPath).removeFirstSegments(1));
|
return rcInfos.getFileInfo(new Path(resPath).removeFirstSegments(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getFilteredTools()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITool[] getFilteredTools() {
|
public ITool[] getFilteredTools() {
|
||||||
return rootFolderInfo.getFilteredTools();
|
return rootFolderInfo.getFilteredTools();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getTools()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITool[] getTools() {
|
public ITool[] getTools() {
|
||||||
return rootFolderInfo.getTools();
|
return rootFolderInfo.getTools();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getTool(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITool getTool(String id) {
|
public ITool getTool(String id) {
|
||||||
return rootFolderInfo.getTool(id);
|
return rootFolderInfo.getTool(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getToolsBySuperClassId(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITool[] getToolsBySuperClassId(String id) {
|
public ITool[] getToolsBySuperClassId(String id) {
|
||||||
return rootFolderInfo.getToolsBySuperClassId(id);
|
return rootFolderInfo.getToolsBySuperClassId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getTargetTool()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public ITool getTargetTool() {
|
public ITool getTargetTool() {
|
||||||
String[] targetToolIds = rootFolderInfo.getToolChain().getTargetToolList();
|
String[] targetToolIds = rootFolderInfo.getToolChain().getTargetToolList();
|
||||||
|
@ -1121,52 +1060,35 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setToolCommand(org.eclipse.cdt.managedbuilder.core.ITool, java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getToolCommand(ITool tool) {
|
public String getToolCommand(ITool tool) {
|
||||||
// TODO: Do we need to verify that the tool is part of the configuration?
|
// TODO: Do we need to verify that the tool is part of the configuration?
|
||||||
return tool.getToolCommand();
|
return tool.getToolCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setToolCommand(org.eclipse.cdt.managedbuilder.core.ITool, java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setToolCommand(ITool tool, String command) {
|
public void setToolCommand(ITool tool, String command) {
|
||||||
// TODO: Do we need to verify that the tool is part of the configuration?
|
// TODO: Do we need to verify that the tool is part of the configuration?
|
||||||
tool.setToolCommand(command);
|
tool.setToolCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setOption(org.eclipse.cdt.core.build.managed.IOption, boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IOption setOption(IHoldsOptions holder, IOption option, boolean value) throws BuildException {
|
public IOption setOption(IHoldsOptions holder, IOption option, boolean value) throws BuildException {
|
||||||
return getRootFolderInfo().setOption(holder, option, value);
|
return getRootFolderInfo().setOption(holder, option, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setOption(org.eclipse.cdt.core.build.managed.IOption, java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IOption setOption(IHoldsOptions holder, IOption option, String value) throws BuildException {
|
public IOption setOption(IHoldsOptions holder, IOption option, String value) throws BuildException {
|
||||||
return getRootFolderInfo().setOption(holder, option, value);
|
return getRootFolderInfo().setOption(holder, option, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setOption(org.eclipse.cdt.core.build.managed.IOption, java.lang.String[])
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IOption setOption(IHoldsOptions holder, IOption option, String[] value) throws BuildException {
|
public IOption setOption(IHoldsOptions holder, IOption option, String[] value) throws BuildException {
|
||||||
return getRootFolderInfo().setOption(holder, option, value);
|
return getRootFolderInfo().setOption(holder, option, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/**
|
||||||
* Adds the Resource Configuration to the Resource Configuration list and map
|
* Adds the Resource Configuration to the Resource Configuration list and map
|
||||||
*
|
|
||||||
* @param resConfig
|
|
||||||
*/
|
*/
|
||||||
void addResourceConfiguration(IResourceInfo resConfig) {
|
void addResourceConfiguration(IResourceInfo resConfig) {
|
||||||
if(resConfig.getPath().segmentCount() == 0)
|
if(resConfig.getPath().segmentCount() == 0)
|
||||||
|
@ -1191,17 +1113,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
* M O D E L A T T R I B U T E A C C E S S O R S
|
* M O D E L A T T R I B U T E A C C E S S O R S
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return (name == null && parent != null) ? parent.getName() : name;
|
return (name == null && parent != null) ? parent.getName() : name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getArtifactExtension()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getArtifactExtension() {
|
public String getArtifactExtension() {
|
||||||
String ext = getArtifactExtensionAttribute(true);
|
String ext = getArtifactExtensionAttribute(true);
|
||||||
|
@ -1219,9 +1135,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return artifactExtension;
|
return artifactExtension;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getArtifactName()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getArtifactName() {
|
public String getArtifactName() {
|
||||||
if (artifactName == null) {
|
if (artifactName == null) {
|
||||||
|
@ -1237,9 +1150,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getBuildArguments()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getBuildArguments() {
|
public String getBuildArguments() {
|
||||||
IToolChain tc = getToolChain();
|
IToolChain tc = getToolChain();
|
||||||
|
@ -1247,12 +1157,9 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
if (builder != null) {
|
if (builder != null) {
|
||||||
return builder.getArguments();
|
return builder.getArguments();
|
||||||
}
|
}
|
||||||
return new String("-k"); //$NON-NLS-1$
|
return "-k"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getBuildCommand()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getBuildCommand() {
|
public String getBuildCommand() {
|
||||||
IToolChain tc = getToolChain();
|
IToolChain tc = getToolChain();
|
||||||
|
@ -1260,14 +1167,9 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
if (builder != null) {
|
if (builder != null) {
|
||||||
return builder.getCommand();
|
return builder.getCommand();
|
||||||
}
|
}
|
||||||
return new String("make"); //$NON-NLS-1$
|
return "make"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getPrebuildStep()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getPrebuildStep() {
|
public String getPrebuildStep() {
|
||||||
if (prebuildStep == null) {
|
if (prebuildStep == null) {
|
||||||
|
@ -1283,11 +1185,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getPostbuildStep()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getPostbuildStep() {
|
public String getPostbuildStep() {
|
||||||
if (postbuildStep == null) {
|
if (postbuildStep == null) {
|
||||||
|
@ -1303,11 +1200,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getPreannouncebuildStep()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getPreannouncebuildStep() {
|
public String getPreannouncebuildStep() {
|
||||||
if (preannouncebuildStep == null) {
|
if (preannouncebuildStep == null) {
|
||||||
|
@ -1323,11 +1215,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getPostannouncebuildStep()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getPostannouncebuildStep() {
|
public String getPostannouncebuildStep() {
|
||||||
if (postannouncebuildStep == null) {
|
if (postannouncebuildStep == null) {
|
||||||
|
@ -1343,11 +1230,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getCleanCommand()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getCleanCommand() {
|
public String getCleanCommand() {
|
||||||
// Return the command used to remove files
|
// Return the command used to remove files
|
||||||
|
@ -1357,9 +1239,9 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
} else {
|
} else {
|
||||||
// User forgot to specify it. Guess based on OS.
|
// User forgot to specify it. Guess based on OS.
|
||||||
if (Platform.getOS().equals(Platform.OS_WIN32)) {
|
if (Platform.getOS().equals(Platform.OS_WIN32)) {
|
||||||
return new String("del"); //$NON-NLS-1$
|
return "del"; //$NON-NLS-1$
|
||||||
} else {
|
} else {
|
||||||
return new String("rm"); //$NON-NLS-1$
|
return "rm"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1368,9 +1250,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#getDescription()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
if (description == null) {
|
if (description == null) {
|
||||||
|
@ -1386,11 +1265,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getErrorParserIds()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String getErrorParserIds() {
|
public String getErrorParserIds() {
|
||||||
if (errorParserIds != null) {
|
if (errorParserIds != null) {
|
||||||
|
@ -1424,9 +1298,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return errorParsers;
|
return errorParsers;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getErrorParserList()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getErrorParserList() {
|
public String[] getErrorParserList() {
|
||||||
Set<String> set = contributeErrorParsers(null, true);
|
Set<String> set = contributeErrorParsers(null, true);
|
||||||
|
@ -1517,9 +1388,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return defaultLanguageSettingsProviderIds;
|
return defaultLanguageSettingsProviderIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setArtifactExtension(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setArtifactExtension(String extension) {
|
public void setArtifactExtension(String extension) {
|
||||||
if (extension == null && artifactExtension == null) return;
|
if (extension == null && artifactExtension == null) return;
|
||||||
|
@ -1539,9 +1407,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setArtifactName(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setArtifactName(String name) {
|
public void setArtifactName(String name) {
|
||||||
if (name == null && artifactName == null) return;
|
if (name == null && artifactName == null) return;
|
||||||
|
@ -1581,9 +1446,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setErrorParserIds()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setErrorParserIds(String ids) {
|
public void setErrorParserIds(String ids) {
|
||||||
String currentIds = getErrorParserIds();
|
String currentIds = getErrorParserIds();
|
||||||
|
@ -1594,9 +1456,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setCleanCommand()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setCleanCommand(String command) {
|
public void setCleanCommand(String command) {
|
||||||
if (command == null && cleanCommand == null) return;
|
if (command == null && cleanCommand == null) return;
|
||||||
|
@ -1606,9 +1465,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setDescription(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDescription(String description) {
|
public void setDescription(String description) {
|
||||||
if (description == null && this.description == null) return;
|
if (description == null && this.description == null) return;
|
||||||
|
@ -1618,9 +1474,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setBuildArguments()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setBuildArguments(String makeArgs) {
|
public void setBuildArguments(String makeArgs) {
|
||||||
IToolChain tc = getToolChain();
|
IToolChain tc = getToolChain();
|
||||||
|
@ -1641,9 +1494,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setBuildCommand()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setBuildCommand(String command) {
|
public void setBuildCommand(String command) {
|
||||||
IToolChain tc = getToolChain();
|
IToolChain tc = getToolChain();
|
||||||
|
@ -1664,9 +1514,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setPrebuildStep(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setPrebuildStep(String step) {
|
public void setPrebuildStep(String step) {
|
||||||
if (step == null && prebuildStep == null) return;
|
if (step == null && prebuildStep == null) return;
|
||||||
|
@ -1678,9 +1525,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setPostbuildStep(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setPostbuildStep(String step) {
|
public void setPostbuildStep(String step) {
|
||||||
if (step == null && postbuildStep == null) return;
|
if (step == null && postbuildStep == null) return;
|
||||||
|
@ -1691,9 +1535,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setPreannouncebuildStep(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setPreannouncebuildStep(String announceStep) {
|
public void setPreannouncebuildStep(String announceStep) {
|
||||||
if (announceStep == null && preannouncebuildStep == null) return;
|
if (announceStep == null && preannouncebuildStep == null) return;
|
||||||
|
@ -1704,9 +1545,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.core.build.managed.IConfiguration#setPostannouncebuildStep(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setPostannouncebuildStep(String announceStep) {
|
public void setPostannouncebuildStep(String announceStep) {
|
||||||
if (announceStep == null && postannouncebuildStep == null) return;
|
if (announceStep == null && postannouncebuildStep == null) return;
|
||||||
|
@ -1717,9 +1555,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#isSupported()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSupported(){
|
public boolean isSupported(){
|
||||||
IFolderInfo foInfo = getRootFolderInfo();
|
IFolderInfo foInfo = getRootFolderInfo();
|
||||||
|
@ -1728,9 +1563,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#isHeaderFile(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isHeaderFile(String ext) {
|
public boolean isHeaderFile(String ext) {
|
||||||
return getRootFolderInfo().isHeaderFile(ext);
|
return getRootFolderInfo().isHeaderFile(ext);
|
||||||
|
@ -1740,17 +1572,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
* O B J E C T S T A T E M A I N T E N A N C E
|
* O B J E C T S T A T E M A I N T E N A N C E
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#isExtensionElement()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isExtensionElement() {
|
public boolean isExtensionElement() {
|
||||||
return isExtensionConfig;
|
return isExtensionConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#isDirty()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isDirty() {
|
public boolean isDirty() {
|
||||||
// This shouldn't be called for an extension configuration
|
// This shouldn't be called for an extension configuration
|
||||||
|
@ -1769,9 +1595,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return isDirty;
|
return isDirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#needsRebuild()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean needsRebuild() {
|
public boolean needsRebuild() {
|
||||||
return needsRebuild(true);
|
return needsRebuild(true);
|
||||||
|
@ -1798,9 +1621,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setDirty(boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setDirty(boolean isDirty) {
|
public void setDirty(boolean isDirty) {
|
||||||
// Override the dirty flag
|
// Override the dirty flag
|
||||||
|
@ -1815,9 +1635,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#setRebuildState(boolean)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void setRebuildState(boolean rebuild) {
|
public void setRebuildState(boolean rebuild) {
|
||||||
if(isExtensionElement() && rebuild)
|
if(isExtensionElement() && rebuild)
|
||||||
|
@ -1839,9 +1656,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#hasOverriddenBuildCommand()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasOverriddenBuildCommand() {
|
public boolean hasOverriddenBuildCommand() {
|
||||||
IBuilder builder = getToolChain().getBuilder();
|
IBuilder builder = getToolChain().getBuilder();
|
||||||
|
@ -1951,9 +1765,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
return fileInfo;
|
return fileInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getEnvironmentVariableSupplier()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IConfigurationEnvironmentVariableSupplier getEnvironmentVariableSupplier(){
|
public IConfigurationEnvironmentVariableSupplier getEnvironmentVariableSupplier(){
|
||||||
IToolChain toolChain = getToolChain();
|
IToolChain toolChain = getToolChain();
|
||||||
|
@ -1980,9 +1791,6 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
// Do nothing
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#getBuildMacroSupplier()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public IConfigurationBuildMacroSupplier getBuildMacroSupplier(){
|
public IConfigurationBuildMacroSupplier getBuildMacroSupplier(){
|
||||||
IToolChain toolChain = getToolChain();
|
IToolChain toolChain = getToolChain();
|
||||||
|
@ -1992,17 +1800,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.core.IConfiguration#isTemporary()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isTemporary(){
|
public boolean isTemporary(){
|
||||||
return isTemporary;
|
return isTemporary;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
|
||||||
* @see org.eclipse.cdt.managedbuilder.internal.core.BuildObject#updateManagedBuildRevision(java.lang.String)
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void updateManagedBuildRevision(String revision){
|
public void updateManagedBuildRevision(String revision){
|
||||||
super.updateManagedBuildRevision(revision);
|
super.updateManagedBuildRevision(revision);
|
||||||
|
@ -2554,10 +2356,10 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
@Override
|
@Override
|
||||||
public String getOutputPrefix(String outputExtension) {
|
public String getOutputPrefix(String outputExtension) {
|
||||||
// Treat null extensions as empty string
|
// Treat null extensions as empty string
|
||||||
String ext = outputExtension == null ? new String() : outputExtension;
|
String ext = outputExtension == null ? EMPTY_STRING : outputExtension;
|
||||||
|
|
||||||
// Get all the tools for the current config
|
// Get all the tools for the current config
|
||||||
String flags = new String();
|
String flags = EMPTY_STRING;
|
||||||
ITool[] tools = getFilteredTools();
|
ITool[] tools = getFilteredTools();
|
||||||
for (int index = 0; index < tools.length; index++) {
|
for (int index = 0; index < tools.length; index++) {
|
||||||
ITool tool = tools[index];
|
ITool tool = tools[index];
|
||||||
|
@ -2650,10 +2452,10 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
@Override
|
@Override
|
||||||
public String getOutputFlag(String outputExt) {
|
public String getOutputFlag(String outputExt) {
|
||||||
// Treat null extension as an empty string
|
// Treat null extension as an empty string
|
||||||
String ext = outputExt == null ? new String() : outputExt;
|
String ext = outputExt == null ? EMPTY_STRING : outputExt;
|
||||||
|
|
||||||
// Get all the tools for the current config
|
// Get all the tools for the current config
|
||||||
String flags = new String();
|
String flags = EMPTY_STRING;
|
||||||
ITool[] tools = getFilteredTools();
|
ITool[] tools = getFilteredTools();
|
||||||
for (int index = 0; index < tools.length; index++) {
|
for (int index = 0; index < tools.length; index++) {
|
||||||
ITool tool = tools[index];
|
ITool tool = tools[index];
|
||||||
|
@ -2858,7 +2660,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
List<ICSettingEntry> list = new ArrayList<ICSettingEntry>(entries.length + 1);
|
List<ICSettingEntry> list = new ArrayList<ICSettingEntry>(entries.length + 1);
|
||||||
|
|
||||||
// Add project level include path
|
// Add project level include path
|
||||||
list.add(CDataUtil.createCIncludePathEntry(path.toString(), ICLanguageSettingEntry.VALUE_WORKSPACE_PATH));
|
list.add(CDataUtil.createCIncludePathEntry(path.toString(), ICSettingEntry.VALUE_WORKSPACE_PATH));
|
||||||
|
|
||||||
// Add Build output path as an exported library path
|
// Add Build output path as an exported library path
|
||||||
entries = CDataUtil.resolveEntries(entries, des);
|
entries = CDataUtil.resolveEntries(entries, des);
|
||||||
|
|
Loading…
Add table
Reference in a new issue