Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMikhail Sennikovsky2008-07-01 16:33:11 +0000
committerMikhail Sennikovsky2008-07-01 16:33:11 +0000
commit4c6457c39deed445ac764d9fbf83edf1dffa1631 (patch)
treef92bdb3108a4b5cdfb9ad59a493a3b5a7e8980ca /build
parent3b92e498e831717a170e2cc50e1cd4fe76ca7a8b (diff)
downloadorg.eclipse.cdt-4c6457c39deed445ac764d9fbf83edf1dffa1631.tar.gz
org.eclipse.cdt-4c6457c39deed445ac764d9fbf83edf1dffa1631.tar.xz
org.eclipse.cdt-4c6457c39deed445ac764d9fbf83edf1dffa1631.zip
Patch from Zhang, Yi Y, with small modification, for [Bug 229934] ManagedCommandLineGenerator.generateCommandLineInfo() skips text after last symbolic variable
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedCommandLineGenerator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedCommandLineGenerator.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedCommandLineGenerator.java
index 5acb0e6e56b..cdfeb790bbf 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedCommandLineGenerator.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedCommandLineGenerator.java
@@ -131,6 +131,10 @@ public class ManagedCommandLineGenerator implements
start = ++stop;
// }
}
+ if (stop<commandLinePattern.length()){
+ sb.append(commandLinePattern.substring(stop));
+ }
+
return new ManagedCommandLineInfo( sb.toString().trim(), commandLinePattern, commandName, stringArrayToString( flags ),
outputFlag, outputPrefix, outputName, stringArrayToString( inputResources ) );
}

Back to the top