vm/pom.xml
branchemul
changeset 673 62b514a70382
parent 672 add357fd6c5c
child 691 10194cb7ffc2
     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>