Milos pointed out its Velocity - e.g. we can replace characters in properties if we want
1.1 --- a/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrswrMojo.java Wed Jan 09 20:55:26 2013 +0100
1.2 +++ b/mojo/src/main/java/org/apidesign/bck2brwsr/mojo/BrswrMojo.java Thu Jan 10 10:05:17 2013 +0100
1.3 @@ -45,9 +45,6 @@
1.4 @Parameter
1.5 private String startpage;
1.6
1.7 - @Parameter
1.8 - private String startpackage;
1.9 -
1.10 @Parameter(defaultValue="${project}")
1.11 private MavenProject prj;
1.12
1.13 @@ -78,11 +75,7 @@
1.14 }
1.15
1.16 private String startpage() {
1.17 - if (startpackage == null) {
1.18 - return startpage;
1.19 - } else {
1.20 - return startpackage.replace('.', '/') + '/' + startpage;
1.21 - }
1.22 + return startpage;
1.23 }
1.24
1.25 private static URLClassLoader buildClassLoader(File root, Collection<Artifact> deps) throws MalformedURLException {
2.1 --- a/mojo/src/main/resources/archetype-resources/pom.xml Wed Jan 09 20:55:26 2013 +0100
2.2 +++ b/mojo/src/main/resources/archetype-resources/pom.xml Thu Jan 10 10:05:17 2013 +0100
2.3 @@ -27,8 +27,7 @@
2.4 </execution>
2.5 </executions>
2.6 <configuration>
2.7 - <startpackage>${package}</startpackage>
2.8 - <startpage>index.xhtml</startpage>
2.9 + <startpage>${package.replace('.','/')}/index.xhtml</startpage>
2.10 </configuration>
2.11 </plugin>
2.12 <plugin>