Better description and use substitution to generate the correct package, artifactId and version
1.1 --- a/ko-archetype/src/main/resources/archetype-resources/src/main/resources/index.html Mon May 13 16:29:57 2013 +0200
1.2 +++ b/ko-archetype/src/main/resources/archetype-resources/src/main/resources/index.html Mon May 13 16:31:21 2013 +0200
1.3 @@ -1,29 +1,4 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 -<!--
1.6 -
1.7 - The MIT License (MIT)
1.8 -
1.9 - Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
1.10 -
1.11 - Permission is hereby granted, free of charge, to any person obtaining a copy
1.12 - of this software and associated documentation files (the "Software"), to deal
1.13 - in the Software without restriction, including without limitation the rights
1.14 - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1.15 - copies of the Software, and to permit persons to whom the Software is
1.16 - furnished to do so, subject to the following conditions:
1.17 -
1.18 - The above copyright notice and this permission notice shall be included in
1.19 - all copies or substantial portions of the Software.
1.20 -
1.21 - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1.22 - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1.23 - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1.24 - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1.25 - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1.26 - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1.27 - THE SOFTWARE.
1.28 -
1.29 --->
1.30
1.31 <!--
1.32 Copied from knockout.js Twitter example:
1.33 @@ -47,13 +22,20 @@
1.34 <h2>Bck2Brwsr's Twitter</h2>
1.35
1.36 <p>
1.37 - This code based on original <a href="http://knockoutjs.com/examples/twitter.html">knockout.js Twitter example</a> and
1.38 - uses almost unmodified HTML code. It just changes the model. It
1.39 - is written in Java language and it is executed using <a href="http://bck2brwsr.apidesign.org">Bck2Brwsr</a>
1.40 - virtual machine. The Java source code has about 190 lines and is available
1.41 - <a href="http://source.apidesign.org/hg/bck2brwsr/file/7fc6b7e9c982/javaquery/demo-twitter/src/main/java/org/apidesign/bck2brwsr/demo/twitter/TwitterClient.java">here</a>
1.42 + This code is based on original
1.43 + <a href="http://knockoutjs.com/examples/twitter.html">knockout.js
1.44 + Twitter example</a> and
1.45 + uses almost unmodified HTML page. It just changes the model. The model
1.46 + is written in Java language.The Java source code has about 190 lines
1.47 - in fact it may even be more dense than the original JavaScript model.
1.48 </p>
1.49 + <p>
1.50 + The project has two profiles. Either it executes in real Java virtual
1.51 + machine and renders using JavaFX's WebView (use <code>fxbrwsr</code> profile
1.52 + - the default). It can also run directly in a browser via
1.53 + <a href="http://bck2brwsr.apidesign.org">Bck2Brwsr</a> virtual machine
1.54 + (use <code>bck2brwsr</code> profile).
1.55 + </p>
1.56
1.57 <div class='liveExample'>
1.58 <div class='configuration'>
1.59 @@ -96,8 +78,8 @@
1.60
1.61 <script src="bck2brwsr.js"></script>
1.62 <script type="text/javascript">
1.63 - var vm = bck2brwsr('demo-twitter-1.0-SNAPSHOT.jar');
1.64 - vm.loadClass('org.apidesign.html.demo.twitter.TwitterClient');
1.65 + var vm = bck2brwsr('${artifactId}-${version}.jar');
1.66 + vm.loadClass('${package}.TwitterClient');
1.67 </script>
1.68
1.69