Skip to content

Commit 0c9fe0c

Browse files
committed
Second trial for #279 This time I keep pivateLibraryPath and PrivateLibrary path in sync. This because the reference doesn't seem to work on windows
1 parent 652396a commit 0c9fe0c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/ArduinoHelpers.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public static void setProjectPathVariables(IProject project, IPath platformPath)
370370
pathMan.setURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_HARDWARE_LIB, URIUtil.toURI(arduinoHardwareLibraryPath));
371371
pathMan.setURIValue(ArduinoConst.PATH_VARIABLE_NAME_ARDUINO_PLATFORM, URIUtil.toURI(platformPath));
372372
pathMan.setURIValue(ArduinoConst.PATH_VARIABLE_NAME_ARDUINO_PINS, URIUtil.toURI(PinPath));
373-
pathMan.setURIValue("ArduinoPivateLibPath", URIUtil.toURI("${" + ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB + "}"));
373+
// pathMan.setURIValue("ArduinoPivateLibPath", URIUtil.toURI("${" + ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB + "}"));
374374

375375
} catch (CoreException e) {
376376
Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID,

it.baeyens.arduino.core/src/it/baeyens/arduino/ui/ArduinoPreferencePage.java

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ private void setWorkSpacePathVariables() {
227227
pathMan.setURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_ARDUINO_LIB,
228228
URIUtil.toURI(ArduinoIDEPath.append(ArduinoConst.LIBRARY_PATH_SUFFIX).toString()));
229229
pathMan.setURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB, URIUtil.toURI(mArduinoPrivateLibPath.getStringValue()));
230+
// the line below is added because eclipse seems to keep on using the old value.
231+
pathMan.setURIValue("ArduinoPivateLibPath", URIUtil.toURI(mArduinoPrivateLibPath.getStringValue()));
230232
pathMan.setURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_ARDUINO, URIUtil.toURI(ArduinoIDEPath));
231233
} catch (CoreException e) {
232234
Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID,

0 commit comments

Comments
 (0)