minesweeper/pom.xml
branchibrwsr
changeset 124 533c2be1747c
parent 123 17aafe5116d5
parent 120 1f150d9e4815
child 125 d7b40912b16d
     1.1 --- a/minesweeper/pom.xml	Thu Mar 27 09:57:14 2014 +0100
     1.2 +++ b/minesweeper/pom.xml	Thu Mar 27 15:14:48 2014 +0100
     1.3 @@ -116,6 +116,11 @@
     1.4      </dependency>
     1.5      <dependency>
     1.6          <groupId>org.netbeans.html</groupId>
     1.7 +        <artifactId>net.java.html</artifactId>
     1.8 +        <version>${net.java.html.version}</version>
     1.9 +    </dependency>
    1.10 +    <dependency>
    1.11 +        <groupId>org.netbeans.html</groupId>
    1.12          <artifactId>net.java.html.sound</artifactId>
    1.13          <version>${net.java.html.version}</version>
    1.14      </dependency>
    1.15 @@ -125,6 +130,12 @@
    1.16          <version>${net.java.html.version}</version>
    1.17      </dependency>
    1.18      <dependency>
    1.19 +      <groupId>org.netbeans.html</groupId>
    1.20 +      <artifactId>nbrwsr</artifactId>
    1.21 +      <version>${net.java.html.version}</version>
    1.22 +      <scope>provided</scope>
    1.23 +    </dependency>
    1.24 +    <dependency>
    1.25        <groupId>org.testng</groupId>
    1.26        <artifactId>testng</artifactId>
    1.27        <version>6.7</version>
    1.28 @@ -253,11 +264,6 @@
    1.29        </profile>
    1.30        <profile>
    1.31            <id>dlvkbrwsr</id>
    1.32 -          <activation>
    1.33 -              <property>
    1.34 -                  <name>android.sdk.path</name>
    1.35 -              </property>
    1.36 -          </activation>
    1.37            <properties>
    1.38                <platform.version>4.1.1.4</platform.version>
    1.39                <android.plugin.version>3.7.0</android.plugin.version>
    1.40 @@ -271,9 +277,9 @@
    1.41                    <scope>provided</scope>
    1.42                </dependency>
    1.43                <dependency>
    1.44 -                  <groupId>org.apidesign.html</groupId>
    1.45 +                  <groupId>org.apidesign.brwsr</groupId>
    1.46                    <artifactId>dlvkbrwsr</artifactId>
    1.47 -                  <version>0.2-SNAPSHOT</version>
    1.48 +                  <version>0.5</version>
    1.49                    <type>jar</type>
    1.50                </dependency>
    1.51                <dependency>
    1.52 @@ -308,6 +314,7 @@
    1.53                                    <metaInclude>services/org.apidesign.**</metaInclude>
    1.54                                </metaIncludes>
    1.55                            </apk>
    1.56 +                          <extractDuplicates>true</extractDuplicates>
    1.57                            <file>${project.build.directory}/${project.build.finalName}.apk</file>
    1.58                        </configuration>
    1.59                        <executions>
    1.60 @@ -344,7 +351,165 @@
    1.61                    </plugin>
    1.62                </plugins>
    1.63            </build>
    1.64 -          
    1.65        </profile>
    1.66 +      <profile>
    1.67 +          <id>teabrwsr</id>
    1.68 +          <build>
    1.69 +              <plugins>
    1.70 +                  <plugin>
    1.71 +                      <groupId>org.teavm</groupId>
    1.72 +                      <artifactId>teavm-maven-plugin</artifactId>
    1.73 +                      <version>${teavm.version}</version>
    1.74 +                      <dependencies>
    1.75 +                          <dependency>
    1.76 +                              <groupId>org.teavm</groupId>
    1.77 +                              <artifactId>teavm-classlib</artifactId>
    1.78 +                              <version>${teavm.version}</version>
    1.79 +                          </dependency>
    1.80 +                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
    1.81 +                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
    1.82 +                          <dependency>
    1.83 +                              <groupId>org.teavm</groupId>
    1.84 +                              <artifactId>teavm-html4j</artifactId>
    1.85 +                              <version>${teavm.version}</version>
    1.86 +                          </dependency>
    1.87 +                      </dependencies>
    1.88 +                      <executions>
    1.89 +                          <execution>
    1.90 +                              <id>generate-minesweeper</id>
    1.91 +                              <goals>
    1.92 +                                  <goal>build-javascript</goal>
    1.93 +                              </goals>
    1.94 +                              <phase>process-classes</phase>
    1.95 +                              <configuration>
    1.96 +                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
    1.97 +                                  <minifying>false</minifying>
    1.98 +                                  <properties>
    1.99 +                                      <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
   1.100 +                                      <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
   1.101 +                                  </properties>
   1.102 +                                  <!-- Don't include main page - we created it by ourselves -->
   1.103 +                                  <mainPageIncluded>false</mainPageIncluded>
   1.104 +                                  <!-- Merge runtime.js instead of putting as a separate file -->
   1.105 +                                  <runtime>MERGED</runtime>
   1.106 +                                  <!-- Name of the generated file -->
   1.107 +                                  <targetFileName>bck2brwsr.js</targetFileName>
   1.108 +                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
   1.109 +                                  <!-- This transformer adds null checks before virtual calls. It is not included
   1.110 +                                  by default as we don't always need these null checks -->
   1.111 +                                  <transformers>
   1.112 +                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
   1.113 +                                  </transformers>
   1.114 +                              </configuration>
   1.115 +                          </execution>
   1.116 +                      </executions>
   1.117 +                  </plugin>
   1.118 +                  <plugin>
   1.119 +                      <artifactId>maven-assembly-plugin</artifactId>
   1.120 +                      <version>2.4</version>
   1.121 +                      <executions>
   1.122 +                          <execution>
   1.123 +                              <id>distro-assembly</id>
   1.124 +                              <phase>package</phase>
   1.125 +                              <goals>
   1.126 +                                  <goal>single</goal>
   1.127 +                              </goals>
   1.128 +                              <configuration>
   1.129 +                                  <descriptors>
   1.130 +                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
   1.131 +                                  </descriptors>
   1.132 +                              </configuration>
   1.133 +                          </execution>
   1.134 +                      </executions>                
   1.135 +                  </plugin>      
   1.136 +              </plugins>
   1.137 +          </build>
   1.138 +      </profile>
   1.139 +      <profile>
   1.140 +          <id>nbrwsr</id>
   1.141 +          <dependencies>
   1.142 +              <dependency>
   1.143 +                  <groupId>org.netbeans.html</groupId>
   1.144 +                  <artifactId>nbrwsr</artifactId>
   1.145 +                  <version>${net.java.html.version}</version>
   1.146 +                  <scope>compile</scope>
   1.147 +              </dependency>
   1.148 +          </dependencies>
   1.149 +          <build>
   1.150 +              <plugins>
   1.151 +                  <plugin>
   1.152 +                      <groupId>org.apache.maven.plugins</groupId>
   1.153 +                      <artifactId>maven-resources-plugin</artifactId>
   1.154 +                      <version>2.6</version>
   1.155 +                      <executions>
   1.156 +                          <execution>
   1.157 +                              <id>include-webpages</id>
   1.158 +                              <goals>
   1.159 +                                  <goal>copy-resources</goal>
   1.160 +                              </goals>
   1.161 +                              <phase>process-resources</phase>
   1.162 +                              <configuration>
   1.163 +                                  <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
   1.164 +                                  <overwrite>true</overwrite>
   1.165 +                                  <resources>          
   1.166 +                                      <resource>
   1.167 +                                          <directory>src/main/webapp/pages</directory>
   1.168 +                                      </resource>
   1.169 +                                  </resources>              
   1.170 +                              </configuration>   
   1.171 +                          </execution>
   1.172 +                      </executions>
   1.173 +                  </plugin>
   1.174 +                  <plugin>
   1.175 +                      <groupId>org.codehaus.mojo</groupId>
   1.176 +                      <artifactId>nbm-maven-plugin</artifactId>
   1.177 +                      <version>3.13</version>
   1.178 +                      <extensions>true</extensions>
   1.179 +                      <executions>
   1.180 +                          <execution>
   1.181 +                              <id>default-manifest</id>
   1.182 +                              <phase>process-classes</phase>
   1.183 +                              <goals>
   1.184 +                                  <goal>manifest</goal>
   1.185 +                              </goals>
   1.186 +                              <configuration>
   1.187 +                                  <useOSGiDependencies>true</useOSGiDependencies>
   1.188 +                                  <brandingToken>html4j4nb</brandingToken>
   1.189 +                                  <cluster>html4j4nb</cluster>
   1.190 +                                  <verifyIntegrity>false</verifyIntegrity>
   1.191 +                              </configuration>
   1.192 +                          </execution>                       
   1.193 +                          <execution>
   1.194 +                              <id>default-nbm</id>
   1.195 +                              <phase>package</phase>
   1.196 +                              <goals>
   1.197 +                                  <goal>nbm</goal>
   1.198 +                              </goals>
   1.199 +                              <configuration>
   1.200 +                                  <useOSGiDependencies>true</useOSGiDependencies>
   1.201 +                                  <cluster>html4j4nb</cluster>
   1.202 +                                  <verifyIntegrity>false</verifyIntegrity>
   1.203 +                              </configuration>
   1.204 +                          </execution>
   1.205 +                      </executions>
   1.206 +                      <configuration>
   1.207 +                          <useOSGiDependencies>true</useOSGiDependencies>
   1.208 +                          <brandingToken>html4j4nb</brandingToken>
   1.209 +                          <cluster>html4j4nb</cluster>
   1.210 +                          <verifyIntegrity>false</verifyIntegrity>
   1.211 +                      </configuration>
   1.212 +                  </plugin>                      
   1.213 +
   1.214 +                  <plugin>
   1.215 +                      <groupId>org.apache.maven.plugins</groupId>
   1.216 +                      <artifactId>maven-jar-plugin</artifactId>
   1.217 +                      <configuration>
   1.218 +                          <!-- to have the jar plugin pickup the nbm generated manifest -->
   1.219 +                          <useDefaultManifestFile>true</useDefaultManifestFile>
   1.220 +                      </configuration>
   1.221 +                  </plugin>
   1.222 +              </plugins>
   1.223 +          </build>
   1.224 +      </profile>      
   1.225    </profiles>  
   1.226  </project>