Author: husted Date: Wed Sep 6 04:40:40 2006 New Revision: 440694 URL: http://svn.apache.org/viewvc?view=rev&rev=440694 Log: WW-1349 Try to include source with S2 examples, but no joy.
Modified: struts/struts2/trunk/apps/pom.xml Modified: struts/struts2/trunk/apps/pom.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/pom.xml?view=diff&rev=440694&r1=440693&r2=440694 ============================================================================== --- struts/struts2/trunk/apps/pom.xml (original) +++ struts/struts2/trunk/apps/pom.xml Wed Sep 6 04:40:40 2006 @@ -57,6 +57,16 @@ </repository> </repositories> <build> + <resources> + <!-- Include resources under src/main/java in WEB-INF/classes --> + <resource> + <directory>src/main/java</directory> + <includes> + <include>**/*.properties</include> + <include>**/*.xml</include> + </includes> + </resource> + </resources> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> @@ -89,6 +99,27 @@ </dependency> </dependencies> </plugin> + <!-- Include source code under WEB-INF/src/java --> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>copy-sources</id> + <phase>process-sources</phase> + <configuration> + <tasks> + <copy todir="${project.build.directory}/${pom.artifactId}/WEB-INF/src/java" + failonerror="false"> + <fileset dir="${basedir}/src/main/java"/> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </profile>