From d25d984fcd7c276a85b752eeef6adaa09d54df67 Mon Sep 17 00:00:00 2001 From: Andrew Gvozdev Date: Wed, 29 Sep 2010 21:13:56 +0000 Subject: [PATCH] bug 308042: Spawner messages are too cryptic to be useful to a user --- .../cdt/managedbuilder/core/ExternalBuildRunner.java | 6 +++++- core/org.eclipse.cdt.core/plugin.xml | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ExternalBuildRunner.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ExternalBuildRunner.java index 0da61536ecb..db2cfc76dc9 100644 --- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ExternalBuildRunner.java +++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ExternalBuildRunner.java @@ -70,6 +70,7 @@ public class ExternalBuildRunner implements IBuildRunner { private static final String CONSOLE_HEADER = "ManagedMakeBuilder.message.console.header"; //$NON-NLS-1$ private static final String WARNING_UNSUPPORTED_CONFIGURATION = "ManagedMakeBuilder.warning.unsupported.configuration"; //$NON-NLS-1$ private static final String NEWLINE = System.getProperty("line.separator", "\n"); //$NON-NLS-1$ //$NON-NLS-2$ + private static final String PATH = "PATH"; //$NON-NLS-1$ public boolean invokeBuild(int kind, IProject project, IConfiguration configuration, IBuilder builder, IConsole console, IMarkerGenerator markerGenerator, @@ -204,7 +205,10 @@ public class ExternalBuildRunner implements IBuildRunner { errMsg = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.program.not.in.path", buildCommandStr); //$NON-NLS-1$ buf.append(errorPrefix).append(errMsg).append(NEWLINE); buf.append(NEWLINE); - buf.append("PATH=["+envMap.get("PATH")+"]").append(NEWLINE); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ + String envPath = envMap.get(PATH); + if (envPath==null) + envPath = System.getenv(PATH); + buf.append(PATH+"=["+envPath+"]").append(NEWLINE); //$NON-NLS-1$//$NON-NLS-2$ } else { buf.append(errorPrefix).append(errMsg).append(NEWLINE); } diff --git a/core/org.eclipse.cdt.core/plugin.xml b/core/org.eclipse.cdt.core/plugin.xml index 46ab3dccdca..90137b5fe92 100644 --- a/core/org.eclipse.cdt.core/plugin.xml +++ b/core/org.eclipse.cdt.core/plugin.xml @@ -268,11 +268,12 @@ + + -