Skip to content

Commit 70aee62

Browse files
author
jantje
committed
#1005 Variant is not put in archive
1 parent bc9dc27 commit 70aee62

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ public class Const {
3939
public static final String ARDUINO_HARDWARE_FOLDER_NAME = "hardware";
4040
public static final String ARDUINO_CODE_FOLDER_NAME = "core";
4141

42+
public static final String ARDUINO_CODE_FOLDER_PATH =ARDUINO_CODE_FOLDER_NAME+ "/core";
43+
4244
public static final String BOARDS_FILE_NAME = "boards.txt";
4345

4446
public static final String VARIANTS_FOLDER_NAME = "variants";
47+
public static final String ARDUINO_VARIANT_FOLDER_PATH =ARDUINO_CODE_FOLDER_NAME+ "/variant";
4548

4649
// tags to interpret the arduino txt config files
4750

io.sloeber.core/src/io/sloeber/core/toolchain/ArchiveNameProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IPath[] getOutputNames(IProject project, IConfiguration cConf, ITool tool
2727
.getBuildEnvironmentVariable(project, cConf.getName(), Const.ENV_KEY_USE_ARCHIVER, Const.TRUE)
2828
.equalsIgnoreCase(Const.TRUE);
2929
for (int curPath = 0; curPath < primaryInputNames.length; curPath++) {
30-
if (primaryInputNames[curPath].toString().startsWith(Const.ARDUINO_CODE_FOLDER_NAME) && (bUseArchiver)) {
30+
if (primaryInputNames[curPath].toString().startsWith(Const.ARDUINO_CODE_FOLDER_PATH) && (bUseArchiver)) {
3131
outputNames[curPath] = Helpers.GetOutputName(primaryInputNames[curPath]).addFileExtension("o"); //$NON-NLS-1$
3232
} else {
3333
return null;

io.sloeber.core/src/io/sloeber/core/toolchain/LinkNameProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public IPath[] getOutputNames(IProject project, IConfiguration cConf, ITool tool
2626
.equalsIgnoreCase(Const.TRUE);
2727
IPath[] outputNames = new IPath[primaryInputNames.length];
2828
for (int curPath = 0; curPath < outputNames.length; curPath++) {
29-
if (primaryInputNames[curPath].toString().startsWith(Const.ARDUINO_CODE_FOLDER_NAME) && (bUseArchiver)) {
29+
if (primaryInputNames[curPath].toString().startsWith(Const.ARDUINO_CODE_FOLDER_PATH) && (bUseArchiver)) {
3030
return null;
3131
}
3232
if (primaryInputNames[curPath].toString().endsWith(".ino")) { //$NON-NLS-1$

io.sloeber.core/src/io/sloeber/core/tools/Helpers.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
*
7676
*/
7777
public class Helpers extends Common {
78-
private static final String ARDUINO_CORE_BUILD_FOLDER_NAME = "core";
78+
7979

8080
private static final String ENV_KEY_BUILD_ARCH = ERASE_START + "BUILD.ARCH";
8181
private static final String ENV_KEY_BUILD_GENERIC_PATH = ERASE_START + "BUILD.GENERIC.PATH";
@@ -396,15 +396,15 @@ public static void addArduinoCodeToProject(BoardDescriptor boardDescriptor, IPro
396396

397397
IPath corePath = boardDescriptor.getActualCoreCodePath();
398398
if(corePath!=null) {
399-
addCodeFolder(project, corePath, ARDUINO_CODE_FOLDER_NAME + '/' + ARDUINO_CORE_BUILD_FOLDER_NAME,
399+
addCodeFolder(project, corePath, ARDUINO_CODE_FOLDER_PATH,
400400
configurationDescription,true);
401401
IPath variantPath = boardDescriptor.getActualVariantPath();
402402
if (variantPath == null) {
403403
// remove the existing link
404-
Helpers.removeCodeFolder(project, ARDUINO_CODE_FOLDER_NAME + "/variant");
404+
Helpers.removeCodeFolder(project, ARDUINO_VARIANT_FOLDER_PATH);
405405
} else {
406406
IPath redirectVariantPath = boardDescriptor.getActualVariantPath();
407-
Helpers.addCodeFolder(project, redirectVariantPath, ARDUINO_CODE_FOLDER_NAME + "/variant",
407+
Helpers.addCodeFolder(project, redirectVariantPath, ARDUINO_VARIANT_FOLDER_PATH,
408408
configurationDescription,false);
409409
}
410410
}

io.sloeber.product/arduino.product

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ rights to a jury trial in any resulting litigation.&lt;/p&gt;
364364

365365
<repositories>
366366
<repository location="http://eclipse.baeyens.it/update/V4/nightly" enabled="false" />
367-
<repository location="http://eclipse.baeyens.it/update/V4/stable" enabled="true" />
368367
<repository location="http://download.eclipse.org/releases/photon" enabled="true" />
368+
<repository location="http://eclipse.baeyens.it/update/V4/stable" enabled="true" />
369369
</repositories>
370370

371371
<preferencesInfo>

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ public class CreateAndCompileDefaultInoOnAllBoardsTest {
6565
// boards that need to be fixed
6666
"RedBear Duo (Native USB Port)", "RedBear Duo (RBLink USB Port)",
6767

68-
// needs support for commands before compiling
69-
// "Nucleo-144", "Nucleo-64", "Nucleo-32", "Discovery",
70-
71-
// variant content should not be part of the archive
72-
"UDOO Neo (Cortex M4)",
7368

7469
// issue #660
7570
"Engimusing EFM32WG840", "Engimusing EFM32WG842",

0 commit comments

Comments
 (0)