Author: craigmcc
Date: Tue Jun  6 20:41:15 2006
New Revision: 412268

URL: http://svn.apache.org/viewvc?rev=412268&view=rev
Log:
Make a copy of the Clay Configuration DTD file(s) in the directory where the
Digester registration expects to find them (as well as in META-INF to make
it easy for developers to find them.  Among other things, this will allow
Clay configuration files to be parsed when disconnected from the Internet.

Modified:
    struts/shale/branches/mvn_reorg/shale-clay/pom.xml

Modified: struts/shale/branches/mvn_reorg/shale-clay/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/shale/branches/mvn_reorg/shale-clay/pom.xml?rev=412268&r1=412267&r2=412268&view=diff
==============================================================================
--- struts/shale/branches/mvn_reorg/shale-clay/pom.xml (original)
+++ struts/shale/branches/mvn_reorg/shale-clay/pom.xml Tue Jun  6 20:41:15 2006
@@ -62,7 +62,9 @@
     </dependencies>
 
     <build>
+
         <plugins>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
@@ -75,7 +77,29 @@
                     </systemProperties>
                 </configuration>
             </plugin>
+
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>duplicate-dtd-resources</id>
+                        <phase>compile</phase>
+                        <configuration>
+                            <tasks>
+                                <copy 
todir="${basedir}/target/classes/org/apache/clay/config">
+                                  <fileset 
dir="${basedir}/target/classes/META-INF" includes="*.dtd"/>
+                                </copy>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
         </plugins>
+
     </build>
 
 </project>


Reply via email to