MCPcopy
hub / github.com/arduino/Arduino / addPathFlagIfPathExists

Method addPathFlagIfPathExists

arduino-core/src/cc/arduino/Compiler.java:226–231  ·  view source on GitHub ↗
(List<String> cmd, String flag, File folder)

Source from the content-addressed store, hash-verified

224 }
225
226 private void addPathFlagIfPathExists(List<String> cmd, String flag, File folder) {
227 if (folder.exists()) {
228 cmd.add(flag);
229 cmd.add(folder.getAbsolutePath());
230 }
231 }
232
233 private void callArduinoBuilder(TargetBoard board, TargetPlatform platform, TargetPackage aPackage, String vidpid, BuilderAction action, OutputStream outStream, OutputStream errStream) throws RunnerException {
234 List<String> cmd = new ArrayList<>();

Callers 1

callArduinoBuilderMethod · 0.95

Calls 2

existsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected