Use filtering to enabled/disable appropriate section in the index.html teavm
authorJaroslav Tulach <jtulach@netbeans.org>
Tue, 04 Mar 2014 09:59:53 +0100
branchteavm
changeset 928697860c6af0
parent 91 c20135305ad2
child 93 391cc6bb2f48
Use filtering to enabled/disable appropriate section in the index.html
minesweeper/pom.xml
minesweeper/src/main/webapp/pages/index.html
     1.1 --- a/minesweeper/pom.xml	Tue Mar 04 09:28:20 2014 +0100
     1.2 +++ b/minesweeper/pom.xml	Tue Mar 04 09:59:53 2014 +0100
     1.3 @@ -134,6 +134,9 @@
     1.4                    <value>bck2brwsr</value>
     1.5                </property>
     1.6            </activation>
     1.7 +          <properties>
     1.8 +              <bck2brwsr>--</bck2brwsr>
     1.9 +          </properties>
    1.10            <build>
    1.11                <plugins>
    1.12                    <plugin>
    1.13 @@ -300,6 +303,9 @@
    1.14        </profile>
    1.15        <profile>
    1.16            <id>teabrwsr</id>
    1.17 +          <properties>
    1.18 +              <teabrwsr>--</teabrwsr>
    1.19 +          </properties>
    1.20            <build>
    1.21                <plugins>
    1.22                    <plugin>
     2.1 --- a/minesweeper/src/main/webapp/pages/index.html	Tue Mar 04 09:28:20 2014 +0100
     2.2 +++ b/minesweeper/src/main/webapp/pages/index.html	Tue Mar 04 09:59:53 2014 +0100
     2.3 @@ -144,20 +144,22 @@
     2.4         </div>
     2.5      </div>
     2.6  
     2.7 -        <!-- boot bck2brwsr -->
     2.8 +        <!-- boot bck2brwsr ${bck2brwsr}>
     2.9          <script type="text/javascript" src="bck2brwsr.js"></script>
    2.10          <script>
    2.11              var vm = bck2brwsr('${project.build.finalName}.jar');
    2.12              vm.loadClass('org.apidesign.demo.minesweeper.MainBrwsr');
    2.13          </script>
    2.14 +        <!${bck2brwsr} -->
    2.15          
    2.16 -        <!-- boot teavm -->
    2.17 +        <!-- boot teabrwsr ${teabrwsr}>
    2.18          <script type="text/javascript" src="knockout-2.2.1.js"></script>
    2.19          <script type="text/javascript" src="runtime.js"></script>
    2.20          <script type="text/javascript" src="classes.js"></script>
    2.21          <script type="text/javascript">
    2.22              main(null);
    2.23          </script>
    2.24 +        <!${teabrwsr}  -->
    2.25          
    2.26      </body>
    2.27  </html>