1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

Windows: ":" is an illegal char for a file name. Fixes #4026

This commit is contained in:
Federico Fissore 2015-10-26 18:14:05 +01:00
parent 0102a58122
commit d8d70ee0bd

View File

@ -355,6 +355,7 @@ public class Compiler implements MessageConsumer {
try {
compiledSketch = StringReplacer.replaceFromMapping(compiledSketch, prefs);
copyOfCompiledSketch = StringReplacer.replaceFromMapping(copyOfCompiledSketch, prefs);
copyOfCompiledSketch = copyOfCompiledSketch.replaceAll(":", "_");
Path compiledSketchPath;
Path compiledSketchPathInSubfolder = Paths.get(prefs.get("build.path"), "sketch", compiledSketch);