Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2005-11-23 19:19:08 +0000
committerChris Recoskie2005-11-23 19:19:08 +0000
commit847a638e037ea4cc5b36e2ae2808acb1f2a0c2b0 (patch)
treee6aa7f82d1aec1fe83d6608996a219f7d21782d2 /build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
parentad33e2b6d6b047c26f98db2646d0f513c7a386b2 (diff)
downloadorg.eclipse.cdt-847a638e037ea4cc5b36e2ae2808acb1f2a0c2b0.tar.gz
org.eclipse.cdt-847a638e037ea4cc5b36e2ae2808acb1f2a0c2b0.tar.xz
org.eclipse.cdt-847a638e037ea4cc5b36e2ae2808acb1f2a0c2b0.zip
crecoski Nov 23, 2005
- MBS support for spaces in resource names
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java35
1 files changed, 30 insertions, 5 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
index cb97f812614..dccf2b1d1fd 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
@@ -720,11 +720,36 @@ public class ManagedBuildInfo implements IManagedBuildInfo, IScannerInfo {
String cmd = tool.getToolCommand();
//try to resolve the build macros in the tool command
try{
- String resolvedCommand = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat(cmd,
- "", //$NON-NLS-1$
- " ", //$NON-NLS-1$
- IBuildMacroProvider.CONTEXT_FILE,
- new FileContextData(inputLocation,outputLocation,null,getDefaultConfiguration().getToolChain()));
+ String resolvedCommand = null;
+
+ if ((inputLocation != null && inputLocation.toString().indexOf(" ") != -1) || //$NON-NLS-1$
+ (outputLocation != null && outputLocation.toString().indexOf(" ") != -1) ) //$NON-NLS-1$
+ {
+ resolvedCommand = ManagedBuildManager
+ .getBuildMacroProvider().resolveValue(
+ cmd,
+ "", //$NON-NLS-1$
+ " ", //$NON-NLS-1$
+ IBuildMacroProvider.CONTEXT_FILE,
+ new FileContextData(inputLocation,
+ outputLocation, null,
+ getDefaultConfiguration()
+ .getToolChain()));
+ }
+
+ else {
+ resolvedCommand = ManagedBuildManager
+ .getBuildMacroProvider()
+ .resolveValueToMakefileFormat(
+ cmd,
+ "", //$NON-NLS-1$
+ " ", //$NON-NLS-1$
+ IBuildMacroProvider.CONTEXT_FILE,
+ new FileContextData(inputLocation,
+ outputLocation, null,
+ getDefaultConfiguration()
+ .getToolChain()));
+ }
if((resolvedCommand = resolvedCommand.trim()).length() > 0)
cmd = resolvedCommand;

Back to the top