You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2006/09/02 00:51:57 UTC

svn commit: r439499 - /incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml

Author: rfeng
Date: Fri Sep  1 15:51:57 2006
New Revision: 439499

URL: http://svn.apache.org/viewvc?rev=439499&view=rev
Log:
Work around the JAXB plugin bug that it cannot add "target/jaxb-source" as a testSource

Modified:
    incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml

Modified: incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml?rev=439499&r1=439498&r2=439499&view=diff
==============================================================================
--- incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml (original)
+++ incubator/tuscany/java/sca/databinding/databinding-jaxb/pom.xml Fri Sep  1 15:51:57 2006
@@ -100,9 +100,24 @@
             </testResource>
         </testResources>
 
-        <testSourceDirectory>target/jaxb-source</testSourceDirectory>
-
         <plugins>
+            <!-- A hack to add target/jaxb-source to testCompileSourceRoots -->
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>set-test-source</id>
+                        <phase>generate-test-sources</phase>
+                        <configuration>
+                            <testSourceRoot>target/jaxb-source</testSourceRoot>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+                    
             <plugin>
                 <groupId>com.sun.tools.xjc.maven2</groupId>
                 <artifactId>maven-jaxb-plugin</artifactId>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org