Expose the bck2brwsr.js as artefact emul
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 05 Feb 2013 15:32:16 +0100
branchemul
changeset 67362b514a70382
parent 672 add357fd6c5c
child 674 5d9cd8add4c6
Expose the bck2brwsr.js as artefact
vm/pom.xml
vm/src/main/assembly/bck2brwsr.xml
     1.1 --- a/vm/pom.xml	Tue Feb 05 13:20:07 2013 +0100
     1.2 +++ b/vm/pom.xml	Tue Feb 05 15:32:16 2013 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4    <version>0.3-SNAPSHOT</version>
     1.5    <packaging>jar</packaging>
     1.6  
     1.7 -  <name>Java VM for Browser</name>
     1.8 +  <name>Virtual Machine for Browser</name>
     1.9    <url>http://bck2brwsr.apidesign.org</url>
    1.10  
    1.11    <properties>
    1.12 @@ -68,6 +68,45 @@
    1.13                 <target>1.7</target>
    1.14              </configuration>
    1.15           </plugin>
    1.16 +         <plugin>
    1.17 +             <groupId>org.codehaus.mojo</groupId>
    1.18 +             <artifactId>exec-maven-plugin</artifactId>
    1.19 +             <version>1.2.1</version>
    1.20 +             <executions>
    1.21 +                 <execution>
    1.22 +                     <id>generate-js</id>
    1.23 +                     <phase>process-classes</phase>
    1.24 +                     <goals>
    1.25 +                         <goal>java</goal>
    1.26 +                     </goals>
    1.27 +                 </execution>
    1.28 +             </executions>
    1.29 +             <configuration>
    1.30 +                 <mainClass>org.apidesign.vm4brwsr.Main</mainClass>
    1.31 +                 <arguments>
    1.32 +                     <argument>${project.build.directory}/bck2brwsr.js</argument>
    1.33 +                     <argument>org/apidesign/vm4brwsr/Bck2Brwsr</argument>
    1.34 +                 </arguments>
    1.35 +             </configuration>
    1.36 +         </plugin>
    1.37 +         <plugin>
    1.38 +             <artifactId>maven-assembly-plugin</artifactId>
    1.39 +             <version>2.4</version>
    1.40 +             <executions>
    1.41 +                 <execution>
    1.42 +                     <id>js</id>
    1.43 +                     <phase>package</phase>
    1.44 +                     <goals>
    1.45 +                         <goal>single</goal>
    1.46 +                     </goals>
    1.47 +                     <configuration>
    1.48 +                         <descriptors>
    1.49 +                             <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
    1.50 +                         </descriptors>
    1.51 +                     </configuration>
    1.52 +                 </execution>
    1.53 +             </executions>                
    1.54 +         </plugin>      
    1.55        </plugins>
    1.56    </build>
    1.57    <dependencies>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/vm/src/main/assembly/bck2brwsr.xml	Tue Feb 05 15:32:16 2013 +0100
     2.3 @@ -0,0 +1,36 @@
     2.4 +<?xml version="1.0"?>
     2.5 +<!--
     2.6 +
     2.7 +    Back 2 Browser Bytecode Translator
     2.8 +    Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     2.9 +
    2.10 +    This program is free software: you can redistribute it and/or modify
    2.11 +    it under the terms of the GNU General Public License as published by
    2.12 +    the Free Software Foundation, version 2 of the License.
    2.13 +
    2.14 +    This program is distributed in the hope that it will be useful,
    2.15 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.16 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2.17 +    GNU General Public License for more details.
    2.18 +
    2.19 +    You should have received a copy of the GNU General Public License
    2.20 +    along with this program. Look for COPYING file in the top folder.
    2.21 +    If not, see http://opensource.org/licenses/GPL-2.0.
    2.22 +
    2.23 +-->
    2.24 +<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    2.25 +  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
    2.26 +  
    2.27 +  <id>js</id>
    2.28 +  <formats>
    2.29 +      <format>zip</format>
    2.30 +  </formats>
    2.31 +  <baseDirectory>/</baseDirectory>
    2.32 +  <files>
    2.33 +    <file>
    2.34 +      <source>${project.build.directory}/bck2brwsr.js</source>
    2.35 +      <outputDirectory>/</outputDirectory>
    2.36 +    </file>
    2.37 +  </files>
    2.38 +
    2.39 +</assembly>
    2.40 \ No newline at end of file