Author: wsmoak
Date: Sun Jun  4 00:01:46 2006
New Revision: 411532

URL: http://svn.apache.org/viewvc?rev=411532&view=rev
Log:
[SHALE-179] Maven 2 reorg - tiger
 * Construct the webapp for the tests
 * Pass the basedir system property.
 * Move the faces-config.xml file to resources

Added:
    
struts/shale/branches/mvn_reorg/shale-tiger/src/test/resources/org/apache/shale/tiger/faces/
    
struts/shale/branches/mvn_reorg/shale-tiger/src/test/resources/org/apache/shale/tiger/faces/faces-config.xml
      - copied unchanged from r411522, 
struts/shale/branches/mvn_reorg/shale-tiger/src/test/java/org/apache/shale/tiger/faces/faces-config.xml
Removed:
    
struts/shale/branches/mvn_reorg/shale-tiger/src/test/java/org/apache/shale/tiger/faces/faces-config.xml
Modified:
    struts/shale/branches/mvn_reorg/shale-tiger/pom.xml

Modified: struts/shale/branches/mvn_reorg/shale-tiger/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/shale/branches/mvn_reorg/shale-tiger/pom.xml?rev=411532&r1=411531&r2=411532&view=diff
==============================================================================
--- struts/shale/branches/mvn_reorg/shale-tiger/pom.xml (original)
+++ struts/shale/branches/mvn_reorg/shale-tiger/pom.xml Sun Jun  4 00:01:46 2006
@@ -38,6 +38,14 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemProperties>
+                        <property>
+                            <name>basedir</name>
+                            <value>${basedir}</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
             </plugin>
 
             <plugin>
@@ -48,7 +56,36 @@
                     <target>1.5</target>
                 </configuration>
             </plugin>
-
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>construct-webapp</id>
+                        <phase>test-compile</phase>
+                        <configuration>
+                            <tasks>
+                                <mkdir 
dir="${basedir}/target/test-webapp/WEB-INF"/>
+                                <copy 
tofile="${basedir}/target/test-webapp/WEB-INF/web.xml"
+                                      
file="${basedir}/target/test-classes/org/apache/shale/tiger/config/test-web.xml"/>
+                                <copy 
todir="${basedir}/target/test-webapp/WEB-INF">
+                                    <fileset 
dir="${basedir}/target/test-classes/org/apache/shale/tiger/config"
+                                             includes="test-config-*.xml"/>
+                                </copy>
+                                <mkdir 
dir="${basedir}/target/test-webapp/WEB-INF/classes/org/apache/shale/tiger/config"/>
+                                <copy 
todir="${basedir}/target/test-webapp/WEB-INF/classes/org/apache/shale/tiger/config"
+                                      
file="${basedir}/target/test-classes/org/apache/shale/tiger/config/TestBean.class"/>
+                                <mkdir 
dir="${basedir}/target/test-webapp/WEB-INF/lib"/>
+                                <jar 
destfile="${basedir}/target/test-webapp/WEB-INF/lib/test.jar"
+                                     basedir="${basedir}/target/test-classes"
+                                     
includes="org/apache/shale/tiger/config/TestBean3.class 
META-INF/faces-config.xml"/>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
 
     </build>


Reply via email to