[JS DCE] Add an ability to define overwriting strategy when copying dependencies in dev-mode

* CLI option "-Xdev-mode-overwriting-strategy"
* System Property "kotlin.js.dce.devmode.overwriting.strategy"

Possible values: "older", "all".

#KT-36349 Fixed
This commit is contained in:
Zalim Bashorov
2020-02-19 16:51:09 +03:00
parent 07ca355af8
commit 6f61ea7f67
5 changed files with 40 additions and 37 deletions
@@ -976,6 +976,11 @@ public class CliTestGenerated extends AbstractCliTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cli/js-dce"), Pattern.compile("^(.+)\\.args$"), null, false);
}
@TestMetadata("dceExtraHelp.args")
public void testDceExtraHelp() throws Exception {
runTest("compiler/testData/cli/js-dce/dceExtraHelp.args");
}
@TestMetadata("dceHelp.args")
public void testDceHelp() throws Exception {
runTest("compiler/testData/cli/js-dce/dceHelp.args");
@@ -996,11 +1001,6 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/js-dce/invalidFilename.args");
}
@TestMetadata("jsExtraHelp.args")
public void testJsExtraHelp() throws Exception {
runTest("compiler/testData/cli/js-dce/jsExtraHelp.args");
}
@TestMetadata("nonExistingSourcePath.args")
public void testNonExistingSourcePath() throws Exception {
runTest("compiler/testData/cli/js-dce/nonExistingSourcePath.args");