1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-26 20:54:22 +01:00

wrong path name. now using getContentFile function

This commit is contained in:
Federico Fissore 2012-12-19 15:37:04 +01:00
parent 0c31401fd4
commit 6d3ec1fbe5

View File

@ -655,7 +655,7 @@ public class Base {
if (!newbieFile.createNewFile()) { if (!newbieFile.createNewFile()) {
throw new IOException(); throw new IOException();
} }
FileUtils.copyFile(new File(System.getProperty("user.dir"), "examples" + File.separator + "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile); FileUtils.copyFile(new File(getContentFile("examples"), "01.Basics" + File.separator + "BareMinimum" + File.separator + "BareMinimum.ino"), newbieFile);
return newbieFile.getAbsolutePath(); return newbieFile.getAbsolutePath();
} }