Skip to content

Commit d6c47c8

Browse files
author
jan
committed
Make sloeber.cfg a constant
1 parent 30ef7da commit d6c47c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/core/common/Const.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public class Const {
7171
public static final String LIBRARY_PATH_SUFFIX = "libraries";
7272
public static final String ARDUINO_VARIANT_FOLDER_PATH = ARDUINO_CODE_FOLDER_NAME + SLACH + VARIANT;
7373
public static final String ARDUINO_CODE_FOLDER_PATH = ARDUINO_CODE_FOLDER_NAME + SLACH + CORE;
74+
public static final String SLOEBER_CFG = "sloeber.cfg";
7475

7576
// Environment variable stuff
7677
public static final String ENV_KEY_SLOEBER_START = "sloeber" + DOT;

io.sloeber.tests/src/io/sloeber/core/RegressionTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.sloeber.core;
22

3+
import static io.sloeber.core.common.Const.*;
34
import static org.junit.Assert.*;
45

56
import java.io.File;
@@ -499,10 +500,10 @@ public void openAndCloseUsesSavedSettings() throws Exception {
499500
false);
500501

501502
// get the filenames to copy
502-
IFile file = proj1.getFile("sloeber.cfg"); //$NON-NLS-1$
503+
IFile file = proj1.getFile(SLOEBER_CFG);
503504
File proj1SloeberFile = file.getLocation().toFile();
504505

505-
file = proj2.getFile("sloeber.cfg"); //$NON-NLS-1$
506+
file = proj2.getFile(SLOEBER_CFG);
506507
File proj2SloeberFile = file.getLocation().toFile();
507508

508509
// close and reopen the project

0 commit comments

Comments
 (0)