Skip to content

Commit 29a46d7

Browse files
author
jantje
committed
#661 set awk path in environment vars in windows
1 parent 047a1fa commit 29a46d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

io.sloeber.core/src/io/sloeber/core/api/SloeberProject.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public class SloeberProject extends Common {
8383
private static final String ENV_KEY_BUILD_GENERIC_PATH = BUILD + DOT + "generic" + DOT + PATH; //$NON-NLS-1$
8484
private static final String ENV_KEY_COMPILER_PATH = COMPILER + DOT + PATH;
8585
private static final String SLOEBER_MAKE_LOCATION = ENV_KEY_SLOEBER_START + "make_location"; //$NON-NLS-1$
86+
private static final String SLOEBER_AWK_LOCATION = ENV_KEY_SLOEBER_START + "awk.path"; //$NON-NLS-1$
8687
private static final String CONFIG = "Config";//$NON-NLS-1$
8788
private static final String CONFIG_DOT = CONFIG + DOT;
8889

@@ -372,6 +373,9 @@ private HashMap<String, String> getEnvVars(String configKey) {
372373
if (Common.isWindows) {
373374
allVars.put(SLOEBER_MAKE_LOCATION,
374375
ConfigurationPreferences.getMakePath().addTrailingSeparator().toOSString());
376+
allVars.put(SLOEBER_AWK_LOCATION,
377+
ConfigurationPreferences.getAwkPath().addTrailingSeparator().toOSString());
378+
375379
String systemroot = makeEnvironmentVar("SystemRoot"); //$NON-NLS-1$
376380
allVars.put("PATH", //$NON-NLS-1$
377381
makeEnvironmentVar(ENV_KEY_COMPILER_PATH) + pathDelimiter

0 commit comments

Comments
 (0)