Skip to content

Commit 4ff3e36

Browse files
author
gast1
committed
Generate the correct dependency file
1 parent 3255b0b commit 4ff3e36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
public class WorkAround extends Const {
4747
// Each time this class is touched consider changing the String below to enforce
4848
// updates
49-
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V2.01.test 01 ";
49+
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V2.01.test 03 ";
5050

5151
/**
5252
* workarounds done at installation time. I try to keep those at a minimum but
@@ -219,7 +219,7 @@ static File MakePlatformSloeberTXT(File requestedFileToWorkAround) {
219219

220220
/**
221221
* Method that does the actual conversion of the provided platform.txt to the
222-
* platform.sloeber.txt without eh house keeping. Basically this produces the
222+
* platform.sloeber.txt without the house keeping. Basically this produces the
223223
* content of platform.sloeber.txt after the header
224224
*
225225
* @param inPlatformTxt
@@ -232,6 +232,8 @@ public static String platformApplyWorkArounds(String inPlatformTxt, File request
232232
String platformTXT = inPlatformTxt.replace("\r\n", "\n");
233233
// remove spaces before =
234234
platformTXT = platformTXT.replaceAll("(?m)^(\\S*)\\s*=", "$1=");
235+
//remove -MMD (the dependency generation parameter
236+
platformTXT = platformTXT.replaceAll(" -MMD ", " ");
235237

236238
platformTXT = solveOSStuff(platformTXT);
237239

0 commit comments

Comments
 (0)