You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ws...@apache.org on 2006/04/10 02:36:56 UTC

svn commit: r392857 - /struts/action/trunk/apps/pom.xml

Author: wsmoak
Date: Sun Apr  9 17:36:55 2006
New Revision: 392857

URL: http://svn.apache.org/viewcvs?rev=392857&view=rev
Log:
Include the source code under WEB-INF/src for each example app, using an Ant copy task in an execution of the maven-antrun-plugin bound to the process-sources phase.  (And some reformatting.)

Modified:
    struts/action/trunk/apps/pom.xml

Modified: struts/action/trunk/apps/pom.xml
URL: http://svn.apache.org/viewcvs/struts/action/trunk/apps/pom.xml?rev=392857&r1=392856&r2=392857&view=diff
==============================================================================
--- struts/action/trunk/apps/pom.xml (original)
+++ struts/action/trunk/apps/pom.xml Sun Apr  9 17:36:55 2006
@@ -55,52 +55,59 @@
       <module>strutsel-exercise-taglib</module>
       <module>scripting-mailreader</module>
    </modules>
-   
+
    <build>
-     <resources>
-        <!-- Include source code under WEB-INF/src for example apps -->
-        <!--resource>
-           <directory>src/main/java</directory-->
-           <!--targetPath>${basedir}/target/${pom.artifactId}/WEB-INF/src/main/java</targetPath-->
-           <!--targetPath>../${pom.artifactId}/WEB-INF/src/main/java</targetPath-->
-           <!--targetPath>${pom.build.directory}/${pom.artifactId}/WEB-INF/src/main/java</targetPath-->
-           <!--targetPath>${project.build.directory}/${pom.artifactId}/WEB-INF/src/main/java</targetPath-->
-           <!--includes>
-              <include>**/*.java</include>
-              <include>**/*.properties</include>
-              <include>**/*.xml</include>
-           </includes>
-        </resource-->
+      <resources>
         <!-- Include resources under src/main/java in WEB-INF/classes -->
-        <resource>
+         <resource>
             <directory>src/main/java</directory>
             <includes>
-                <include>**/*.properties</include>
-                <include>**/*.xml</include>
+               <include>**/*.properties</include>
+               <include>**/*.xml</include>
             </includes>
-        </resource>
-     </resources>
+         </resource>
+      </resources>
 
-     <plugins>
-        <plugin>
-           <groupId>org.codehaus.cargo</groupId>
-           <artifactId>cargo-maven2-plugin</artifactId>
-           <configuration>
-              <container>
-                 <containerId>tomcat5x</containerId>
-                 <home>${cargo.tomcat5x.home}</home>
-                 <log>${project.build.directory}/tomcat5x.log</log>
-                 <output>${project.build.directory}/tomcat5x.out</output>
-              </container>
-              <configuration>
-                 <home>${project.build.directory}/tomcat5x</home>
-              </configuration>
-           </configuration>
-        </plugin>
-     </plugins>
+      <plugins>
+         <plugin>
+            <groupId>org.codehaus.cargo</groupId>
+            <artifactId>cargo-maven2-plugin</artifactId>
+            <configuration>
+               <container>
+                  <containerId>tomcat5x</containerId>
+                  <home>${cargo.tomcat5x.home}</home>
+                  <log>${project.build.directory}/tomcat5x.log</log>
+                  <output>${project.build.directory}/tomcat5x.out</output>
+               </container>
+               <configuration>
+                  <home>${project.build.directory}/tomcat5x</home>
+               </configuration>
+            </configuration>
+         </plugin>
+         <!-- Include source code under WEB-INF/src -->
+         <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+               <execution>
+                  <phase>process-sources</phase>
+                  <configuration>
+                     <tasks>
+                        <copy todir="${project.build.directory}/${pom.artifactId}/WEB-INF/src"
+                              failonerror="false">
+                           <fileset dir="${basedir}/src/main/java"/>
+                        </copy>
+                     </tasks>
+                  </configuration>
+                  <goals>
+                     <goal>run</goal>
+                  </goals>
+               </execution>
+            </executions>
+         </plugin>
+      </plugins>
 
-     <finalName>${pom.artifactId}</finalName>
+      <finalName>${pom.artifactId}</finalName>
 
-  </build>
+   </build>
 
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org