Using latest improvements done by Alexey and avoiding wild filtering.
1.1 --- a/minesweeper/pom.xml Tue Mar 04 11:04:16 2014 +0100
1.2 +++ b/minesweeper/pom.xml Thu Mar 06 22:13:28 2014 +0100
1.3 @@ -300,9 +300,6 @@
1.4 </profile>
1.5 <profile>
1.6 <id>teabrwsr</id>
1.7 - <properties>
1.8 - <teabrwsr>--</teabrwsr>
1.9 - </properties>
1.10 <build>
1.11 <plugins>
1.12 <plugin>
1.13 @@ -333,9 +330,16 @@
1.14 <configuration>
1.15 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
1.16 <minifying>false</minifying>
1.17 - <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
1.18 + <properties>
1.19 + <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
1.20 + <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
1.21 + </properties>
1.22 <!-- Don't include main page - we created it by ourselves -->
1.23 <mainPageIncluded>false</mainPageIncluded>
1.24 + <!-- Merge runtime.js instead of putting as a separate file -->
1.25 + <runtime>MERGED</runtime>
1.26 + <!-- Name of the generated file -->
1.27 + <targetFileName>bck2brwsr.js</targetFileName>
1.28 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
1.29 <!-- This transformer adds null checks before virtual calls. It is not included
1.30 by default as we don't always need these null checks -->
2.1 --- a/minesweeper/src/main/webapp/pages/index.html Tue Mar 04 11:04:16 2014 +0100
2.2 +++ b/minesweeper/src/main/webapp/pages/index.html Thu Mar 06 22:13:28 2014 +0100
2.3 @@ -151,15 +151,5 @@
2.4 var vm = bck2brwsr('${project.build.finalName}.jar');
2.5 vm.loadClass('org.apidesign.demo.minesweeper.MainBrwsr');
2.6 </script>
2.7 -
2.8 - <!-- boot teabrwsr ${teabrwsr}>
2.9 - <script type="text/javascript" src="knockout-2.2.1.js"></script>
2.10 - <script type="text/javascript" src="runtime.js"></script>
2.11 - <script type="text/javascript" src="classes.js"></script>
2.12 - <script type="text/javascript">
2.13 - main(null);
2.14 - </script>
2.15 - <!${teabrwsr} -->
2.16 -
2.17 </body>
2.18 </html>