Static, full compilation from Java to js model
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 08 Apr 2013 12:45:41 +0200
branchmodel
changeset 951d98f6b1caaeb
parent 950 445d5f1d4177
child 952 a20e3c6cffc7
Static, full compilation from Java to js
javaquery/demo-twitter/bck2brwsr-assembly.xml
javaquery/demo-twitter/pom.xml
     1.1 --- a/javaquery/demo-twitter/bck2brwsr-assembly.xml	Mon Apr 08 12:36:12 2013 +0200
     1.2 +++ b/javaquery/demo-twitter/bck2brwsr-assembly.xml	Mon Apr 08 12:45:41 2013 +0200
     1.3 @@ -36,15 +36,6 @@
     1.4              <include>*:rt</include>
     1.5          </includes>
     1.6      </dependencySet>
     1.7 -    <dependencySet>
     1.8 -        <useProjectArtifact>false</useProjectArtifact>
     1.9 -        <scope>provided</scope>
    1.10 -        <includes>
    1.11 -            <include>*:js</include>
    1.12 -        </includes>
    1.13 -        <unpack>true</unpack>
    1.14 -        <outputDirectory>/</outputDirectory>
    1.15 -    </dependencySet>
    1.16    </dependencySets> 
    1.17    <fileSets>
    1.18        <fileSet>
    1.19 @@ -63,5 +54,9 @@
    1.20        <source>${project.build.directory}/${project.build.finalName}.jar</source>
    1.21        <outputDirectory>/</outputDirectory>
    1.22      </file>
    1.23 +    <file>
    1.24 +      <source>${project.build.directory}/bck2brwsr.js</source>
    1.25 +      <outputDirectory>/</outputDirectory>
    1.26 +    </file>
    1.27    </files>
    1.28  </assembly>
    1.29 \ No newline at end of file
     2.1 --- a/javaquery/demo-twitter/pom.xml	Mon Apr 08 12:36:12 2013 +0200
     2.2 +++ b/javaquery/demo-twitter/pom.xml	Mon Apr 08 12:45:41 2013 +0200
     2.3 @@ -44,6 +44,7 @@
     2.4  
     2.5    <properties>
     2.6      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     2.7 +    <bck2brwsr.obfuscationlevel>FULL</bck2brwsr.obfuscationlevel>
     2.8    </properties>
     2.9    <build>
    2.10        <plugins>
    2.11 @@ -55,11 +56,14 @@
    2.12                      <execution>
    2.13                          <goals>
    2.14                              <goal>brwsr</goal>
    2.15 +                            <goal>j2js</goal>
    2.16                          </goals>
    2.17                      </execution>
    2.18                  </executions>
    2.19                  <configuration>
    2.20                      <startpage>org/apidesign/bck2brwsr/demo/twitter/index.html</startpage>
    2.21 +                    <javascript>${project.build.directory}/bck2brwsr.js</javascript>
    2.22 +                    <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
    2.23                  </configuration>
    2.24              </plugin>
    2.25           <plugin>
    2.26 @@ -125,14 +129,6 @@
    2.27      </dependency>
    2.28      <dependency>
    2.29        <groupId>org.apidesign.bck2brwsr</groupId>
    2.30 -      <artifactId>vm4brwsr</artifactId>
    2.31 -      <classifier>js</classifier>
    2.32 -      <type>zip</type>
    2.33 -      <version>0.6-SNAPSHOT</version>
    2.34 -      <scope>provided</scope>
    2.35 -    </dependency>
    2.36 -    <dependency>
    2.37 -      <groupId>org.apidesign.bck2brwsr</groupId>
    2.38        <artifactId>vmtest</artifactId>
    2.39        <version>0.6-SNAPSHOT</version>
    2.40        <scope>test</scope>