This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new e81f399  Fix Maven tests
e81f399 is described below

commit e81f399d5d120128cd107ce3f20ab72d11690984
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Jul 15 14:01:36 2019 -0700

    Fix Maven tests
---
 compiler-jx/pom.xml | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

diff --git a/compiler-jx/pom.xml b/compiler-jx/pom.xml
index c0a6e01..d1780ef 100644
--- a/compiler-jx/pom.xml
+++ b/compiler-jx/pom.xml
@@ -38,6 +38,42 @@
         <artifactId>reproducible-build-maven-plugin</artifactId>
         <version>0.9</version>
       </plugin>
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>3.1.0</version>
+        <executions>
+          <execution>
+            <id>copy-externc-resources</id>
+            <phase>process-test-resources</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+          <configuration>
+          
<outputDirectory>${basedir}/../compiler-externc/target</outputDirectory>
+            <resources>
+              <resource>
+                
<directory>${basedir}/../compiler-externc/src/test/config</directory>
+              </resource>
+            </resources>
+          </configuration>
+        </execution>
+        <execution>
+          <id>copy-custom-resources</id>
+          <phase>process-test-resources</phase>
+          <goals>
+            <goal>copy-resources</goal>
+          </goals>
+          <configuration>
+            <outputDirectory>${basedir}/target</outputDirectory>
+            <resources>
+              <resource>
+                <directory>${basedir}/src/test/config</directory>
+              </resource>
+            </resources>
+          </configuration>
+        </execution>
+      </executions>
+    </plugin>
       <!-- Make the surefire execute all unit-tests -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -71,6 +107,65 @@
           </excludes>
         </configuration>
       </plugin>
+    
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <version>1.5.0</version>
+        <executions>
+          <execution>
+              <id>generate-test-js-typedefs</id>
+              <phase>test-compile</phase>
+              <goals>
+                  <goal>exec</goal>
+              </goals>
+              <configuration>
+                  <executable>java</executable>
+                  <arguments>
+                      <argument>-classpath</argument>
+                      <classpath />
+                      
<arguments>org.apache.royale.compiler.clients.EXTERNC</arguments>
+                      
<argument>-load-config+=../compiler-externc/src/test/config/externc-config.xml</argument>
+                  </arguments>
+              </configuration>
+          </execution>
+          <execution>
+              <id>generate-test-js-swc</id>
+              <phase>test-compile</phase>
+              <goals>
+                  <goal>exec</goal>
+              </goals>
+              <configuration>
+                  <executable>java</executable>
+                  <arguments>
+                      <argument>-classpath</argument>
+                      <classpath />
+                      
<arguments>org.apache.royale.compiler.clients.COMPJSC</arguments>
+                      <argument>-targets=SWF</argument>
+                      
<argument>-load-config+=../compiler-externc/target/compile-as-config.xml</argument>
+                      
<argument>-output=../compiler-externc/target/js.swc</argument>
+                  </arguments>
+              </configuration>
+          </execution>
+          <execution>
+              <id>generate-test-custom-swc</id>
+              <phase>test-compile</phase>
+              <goals>
+                  <goal>exec</goal>
+              </goals>
+              <configuration>
+                  <executable>java</executable>
+                  <arguments>
+                      <argument>-classpath</argument>
+                      <classpath />
+                      
<arguments>org.apache.royale.compiler.clients.COMPJSC</arguments>
+                      
<argument>-load-config+=target/compile-js-config.xml</argument>
+                      <argument>-output=target/custom.swc</argument>
+                  </arguments>
+              </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 

Reply via email to