diff --git a/tools/cli/src/main/java/org/teavm/cli/TeaVMRunner.java b/tools/cli/src/main/java/org/teavm/cli/TeaVMRunner.java index 943f8f3c4..fd800d936 100644 --- a/tools/cli/src/main/java/org/teavm/cli/TeaVMRunner.java +++ b/tools/cli/src/main/java/org/teavm/cli/TeaVMRunner.java @@ -86,10 +86,6 @@ public final class TeaVMRunner { .withDescription("how to attach runtime. Possible values are: separate|merge|none") .withLongOpt("runtime") .create("r")); - options.addOption(OptionBuilder - .withDescription("causes TeaVM to include default main page") - .withLongOpt("mainpage") - .create()); options.addOption(OptionBuilder .withDescription("Generate debug information") .withLongOpt("debug") @@ -185,9 +181,6 @@ public final class TeaVMRunner { return; } } - if (commandLine.hasOption("mainpage")) { - tool.setMainPageIncluded(true); - } if (commandLine.hasOption('g')) { tool.setDebugInformationGenerated(true); } diff --git a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java index 55209e561..1e92d4f50 100644 --- a/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java +++ b/tools/core/src/main/java/org/teavm/tooling/TeaVMTool.java @@ -21,10 +21,8 @@ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; -import java.io.Reader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; @@ -77,7 +75,6 @@ public class TeaVMTool implements BaseTeaVMTool { private String mainClass; private RuntimeCopyOperation runtime = RuntimeCopyOperation.SEPARATE; private Properties properties = new Properties(); - private boolean mainPageIncluded; private boolean debugInformationGenerated; private boolean sourceMapsFileGenerated; private boolean sourceFilesCopied; @@ -155,14 +152,6 @@ public class TeaVMTool implements BaseTeaVMTool { this.runtime = runtime; } - public boolean isMainPageIncluded() { - return mainPageIncluded; - } - - public void setMainPageIncluded(boolean mainPageIncluded) { - this.mainPageIncluded = mainPageIncluded; - } - public boolean isDebugInformationGenerated() { return debugInformationGenerated; } @@ -524,17 +513,6 @@ public class TeaVMTool implements BaseTeaVMTool { if (runtime == RuntimeCopyOperation.SEPARATE) { resourceToFile("org/teavm/backend/javascript/runtime.js", "runtime.js"); } - if (mainPageIncluded) { - String text; - try (Reader reader = new InputStreamReader(classLoader.getResourceAsStream( - "org/teavm/tooling/main.html"), "UTF-8")) { - text = IOUtils.toString(reader).replace("${classes.js}", getResolvedTargetFileName()); - } - File mainPageFile = new File(targetDirectory, "main.html"); - try (Writer mainPageWriter = new OutputStreamWriter(new FileOutputStream(mainPageFile), "UTF-8")) { - mainPageWriter.append(text); - } - } } private void copySourceFiles() { diff --git a/tools/core/src/main/resources/org/teavm/tooling/main.html b/tools/core/src/main/resources/org/teavm/tooling/main.html deleted file mode 100644 index 2f073fad6..000000000 --- a/tools/core/src/main/resources/org/teavm/tooling/main.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -
- - - - - - \ No newline at end of file diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/TeaVMCompileMojo.java b/tools/maven/plugin/src/main/java/org/teavm/maven/TeaVMCompileMojo.java index caa4beeef..c440a4869 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/TeaVMCompileMojo.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/TeaVMCompileMojo.java @@ -51,9 +51,6 @@ public class TeaVMCompileMojo extends AbstractTeaVMMojo { @Parameter private String mainClass; - @Parameter - private boolean mainPageIncluded; - @Parameter private ClassAlias[] classAliases; @@ -92,7 +89,6 @@ public class TeaVMCompileMojo extends AbstractTeaVMMojo { tool.setLog(new MavenTeaVMToolLog(log)); try { tool.setMainClass(mainClass); - tool.setMainPageIncluded(mainPageIncluded); tool.setRuntime(runtime); if (!targetFileName.isEmpty()) { tool.setTargetFileName(targetFileName);