1.1 --- a/javaquery/demo-twitter/pom.xml Sun Apr 28 14:45:02 2013 +0200
1.2 +++ b/javaquery/demo-twitter/pom.xml Sun Apr 28 21:17:04 2013 +0200
1.3 @@ -12,10 +12,10 @@
1.4 <version>0.7-SNAPSHOT</version>
1.5 <packaging>jar</packaging>
1.6
1.7 - <name>Bck2Brwsr's Twttr</name>
1.8 + <name>Fx/Bck2Brwsr's Twttr</name>
1.9 <description>
1.10 Rewrite of knockoutjs example to use model written in Java and
1.11 - execute using Bck2Brwsr virtual machine.
1.12 + execute using FxBrwsr or Bck2Brwsr.
1.13 </description>
1.14
1.15 <repositories>
1.16 @@ -48,89 +48,85 @@
1.17 </properties>
1.18 <build>
1.19 <plugins>
1.20 - <plugin>
1.21 - <groupId>org.apidesign.bck2brwsr</groupId>
1.22 - <artifactId>bck2brwsr-maven-plugin</artifactId>
1.23 - <version>${project.version}</version>
1.24 - <executions>
1.25 - <execution>
1.26 - <goals>
1.27 - <goal>brwsr</goal>
1.28 - <goal>j2js</goal>
1.29 - </goals>
1.30 - </execution>
1.31 - </executions>
1.32 - <configuration>
1.33 - <startpage>org/apidesign/bck2brwsr/demo/twitter/index.html</startpage>
1.34 - <javascript>${project.build.directory}/bck2brwsr.js</javascript>
1.35 - <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
1.36 - </configuration>
1.37 - </plugin>
1.38 - <plugin>
1.39 - <groupId>org.apache.maven.plugins</groupId>
1.40 - <artifactId>maven-compiler-plugin</artifactId>
1.41 - <version>2.3.2</version>
1.42 - <configuration>
1.43 - <source>1.7</source>
1.44 - <target>1.7</target>
1.45 - </configuration>
1.46 - </plugin>
1.47 - <plugin>
1.48 - <groupId>org.apache.maven.plugins</groupId>
1.49 - <artifactId>maven-jar-plugin</artifactId>
1.50 - <version>2.4</version>
1.51 - <configuration>
1.52 - <archive>
1.53 - <manifest>
1.54 - <addClasspath>true</addClasspath>
1.55 - <classpathPrefix>lib/</classpathPrefix>
1.56 - </manifest>
1.57 - </archive>
1.58 - </configuration>
1.59 - </plugin>
1.60 - <plugin>
1.61 - <groupId>org.apache.maven.plugins</groupId>
1.62 - <artifactId>maven-deploy-plugin</artifactId>
1.63 - <version>2.7</version>
1.64 - <configuration>
1.65 - <skip>true</skip>
1.66 - </configuration>
1.67 - </plugin>
1.68 - <plugin>
1.69 - <artifactId>maven-assembly-plugin</artifactId>
1.70 - <version>2.4</version>
1.71 - <executions>
1.72 - <execution>
1.73 - <id>distro-assembly</id>
1.74 - <phase>package</phase>
1.75 - <goals>
1.76 - <goal>single</goal>
1.77 - </goals>
1.78 - <configuration>
1.79 - <descriptors>
1.80 - <descriptor>bck2brwsr-assembly.xml</descriptor>
1.81 - </descriptors>
1.82 - </configuration>
1.83 - </execution>
1.84 - </executions>
1.85 - </plugin>
1.86 + <plugin>
1.87 + <groupId>org.apidesign.bck2brwsr</groupId>
1.88 + <artifactId>bck2brwsr-maven-plugin</artifactId>
1.89 + <version>${project.version}</version>
1.90 + <executions>
1.91 + <execution>
1.92 + <goals>
1.93 + <goal>brwsr</goal>
1.94 + </goals>
1.95 + </execution>
1.96 + </executions>
1.97 + <configuration>
1.98 + <startpage>org/apidesign/bck2brwsr/demo/twitter/index.html</startpage>
1.99 + <launcher>${brwsr}</launcher>
1.100 + </configuration>
1.101 + </plugin>
1.102 + <plugin>
1.103 + <groupId>org.apache.maven.plugins</groupId>
1.104 + <artifactId>maven-compiler-plugin</artifactId>
1.105 + <version>2.3.2</version>
1.106 + <configuration>
1.107 + <source>1.7</source>
1.108 + <target>1.7</target>
1.109 + </configuration>
1.110 + </plugin>
1.111 + <plugin>
1.112 + <groupId>org.apache.maven.plugins</groupId>
1.113 + <artifactId>maven-surefire-plugin</artifactId>
1.114 + <version>2.14.1</version>
1.115 + <configuration>
1.116 + <systemPropertyVariables>
1.117 + <vmtest.brwsrs>${brwsr}</vmtest.brwsrs>
1.118 + </systemPropertyVariables>
1.119 + </configuration>
1.120 + </plugin>
1.121 + <plugin>
1.122 + <groupId>org.apache.maven.plugins</groupId>
1.123 + <artifactId>maven-jar-plugin</artifactId>
1.124 + <version>2.4</version>
1.125 + <configuration>
1.126 + <archive>
1.127 + <manifest>
1.128 + <addClasspath>true</addClasspath>
1.129 + <classpathPrefix>lib/</classpathPrefix>
1.130 + </manifest>
1.131 + </archive>
1.132 + </configuration>
1.133 + </plugin>
1.134 + <plugin>
1.135 + <groupId>org.apache.maven.plugins</groupId>
1.136 + <artifactId>maven-deploy-plugin</artifactId>
1.137 + <version>2.7</version>
1.138 + <configuration>
1.139 + <skip>true</skip>
1.140 + </configuration>
1.141 + </plugin>
1.142 + <plugin>
1.143 + <artifactId>maven-assembly-plugin</artifactId>
1.144 + <version>2.4</version>
1.145 + <executions>
1.146 + <execution>
1.147 + <id>distro-assembly</id>
1.148 + <phase>package</phase>
1.149 + <goals>
1.150 + <goal>single</goal>
1.151 + </goals>
1.152 + <configuration>
1.153 + <descriptors>
1.154 + <descriptor>bck2brwsr-assembly.xml</descriptor>
1.155 + </descriptors>
1.156 + </configuration>
1.157 + </execution>
1.158 + </executions>
1.159 + </plugin>
1.160 </plugins>
1.161 </build>
1.162
1.163 <dependencies>
1.164 <dependency>
1.165 - <groupId>org.apidesign.bck2brwsr</groupId>
1.166 - <artifactId>emul</artifactId>
1.167 - <version>${project.version}</version>
1.168 - <classifier>rt</classifier>
1.169 - </dependency>
1.170 - <dependency>
1.171 - <groupId>org.apidesign.bck2brwsr</groupId>
1.172 - <artifactId>javaquery.api</artifactId>
1.173 - <version>${project.version}</version>
1.174 - <scope>runtime</scope>
1.175 - </dependency>
1.176 - <dependency>
1.177 <groupId>org.testng</groupId>
1.178 <artifactId>testng</artifactId>
1.179 <version>6.5.2</version>
1.180 @@ -143,16 +139,91 @@
1.181 <scope>test</scope>
1.182 </dependency>
1.183 <dependency>
1.184 - <groupId>${project.groupId}</groupId>
1.185 - <artifactId>launcher.http</artifactId>
1.186 - <version>${project.version}</version>
1.187 - <scope>test</scope>
1.188 - </dependency>
1.189 - <dependency>
1.190 <groupId>org.apidesign.html</groupId>
1.191 <artifactId>net.java.html.json</artifactId>
1.192 <version>0.1-SNAPSHOT</version>
1.193 <type>jar</type>
1.194 </dependency>
1.195 </dependencies>
1.196 + <profiles>
1.197 + <profile>
1.198 + <id>fxbrwsr</id>
1.199 + <activation>
1.200 + <activeByDefault>true</activeByDefault>
1.201 + </activation>
1.202 + <properties>
1.203 + <brwsr>fxbrwsr</brwsr>
1.204 + </properties>
1.205 + <dependencies>
1.206 + <dependency>
1.207 + <groupId>org.apidesign.html</groupId>
1.208 + <artifactId>ko-fx</artifactId>
1.209 + <version>0.1-SNAPSHOT</version>
1.210 + </dependency>
1.211 + <dependency>
1.212 + <groupId>${project.groupId}</groupId>
1.213 + <artifactId>launcher.fx</artifactId>
1.214 + <version>${project.version}</version>
1.215 + <scope>test</scope>
1.216 + </dependency>
1.217 + </dependencies>
1.218 + </profile>
1.219 + <profile>
1.220 + <id>bck2brwsr</id>
1.221 + <activation>
1.222 + <property>
1.223 + <name>brwsr</name>
1.224 + <value>bck2brwsr</value>
1.225 + </property>
1.226 + </activation>
1.227 + <build>
1.228 + <plugins>
1.229 + <plugin>
1.230 + <groupId>org.apidesign.bck2brwsr</groupId>
1.231 + <artifactId>bck2brwsr-maven-plugin</artifactId>
1.232 + <executions>
1.233 + <execution>
1.234 + <goals>
1.235 + <goal>j2js</goal>
1.236 + </goals>
1.237 + </execution>
1.238 + </executions>
1.239 + <configuration>
1.240 + <javascript>${project.build.directory}/bck2brwsr.js</javascript>
1.241 + <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
1.242 + </configuration>
1.243 + </plugin>
1.244 + <plugin>
1.245 + <groupId>org.apache.maven.plugins</groupId>
1.246 + <artifactId>maven-compiler-plugin</artifactId>
1.247 + <configuration>
1.248 + <compilerArguments>
1.249 + <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
1.250 + </compilerArguments>
1.251 + </configuration>
1.252 + </plugin>
1.253 + </plugins>
1.254 + </build>
1.255 + <dependencies>
1.256 + <dependency>
1.257 + <groupId>org.apidesign.bck2brwsr</groupId>
1.258 + <artifactId>emul</artifactId>
1.259 + <version>${project.version}</version>
1.260 + <classifier>rt</classifier>
1.261 + </dependency>
1.262 + <dependency>
1.263 + <groupId>org.apidesign.bck2brwsr</groupId>
1.264 + <artifactId>javaquery.api</artifactId>
1.265 + <version>${project.version}</version>
1.266 + <scope>runtime</scope>
1.267 + </dependency>
1.268 + <dependency>
1.269 + <groupId>${project.groupId}</groupId>
1.270 + <artifactId>launcher.http</artifactId>
1.271 + <version>${project.version}</version>
1.272 + <scope>test</scope>
1.273 + </dependency>
1.274 + </dependencies>
1.275 + </profile>
1.276 + </profiles>
1.277 </project>