Author: wsmoak
Date: Mon Sep  4 18:35:22 2006
New Revision: 440214

URL: http://svn.apache.org/viewvc?view=rev&rev=440214
Log:
Update the dtds whenever the top-level site is published.
STR-2944

Modified:
    struts/site/pom.xml

Modified: struts/site/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/site/pom.xml?view=diff&rev=440214&r1=440213&r2=440214
==============================================================================
--- struts/site/pom.xml (original)
+++ struts/site/pom.xml Mon Sep  4 18:35:22 2006
@@ -64,16 +64,50 @@
       <url>scp://people.apache.org/www/struts.apache.org/</url>
     </site>
   </distributionManagement>
-  
+
     <build>
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <artifactId>maven-site-plugin</artifactId>
-                    <version>2.0-beta-4</version>
-                </plugin>
-            </plugins>
-        </pluginManagement>
+        <plugins>
+            <plugin>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>2.0-beta-4</version>
+            </plugin>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <inherited>false</inherited>
+                <executions>
+                    <execution>
+                        <id>get-dtds</id>
+                        <phase>site</phase>
+                        <configuration>
+                            <tasks>
+                                <mkdir 
dir="${project.build.directory}/site/dtds"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_0.dtd";
+                                     
dest="${project.build.directory}/site/dtds/struts-config_1_0.dtd"
+                                     ignoreerrors="true"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_1.dtd";
+                                     
dest="${project.build.directory}/site/dtds/struts-config_1_1.dtd"
+                                     ignoreerrors="true"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_2.dtd";
+                                     
dest="${project.build.directory}/site/dtds/struts-config_1_2.dtd"
+                                     ignoreerrors="true"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/core/src/main/resources/org/apache/struts/resources/struts-config_1_3.dtd";
+                                     
dest="${project.build.directory}/site/dtds/struts-config_1_3.dtd"
+                                     ignoreerrors="true"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/tiles/src/main/resources/org/apache/struts/resources/tiles-config_1_1.dtd";
+                                     
dest="${project.build.directory}/site/dtds/tiles-config_1_1.dtd"
+                                     ignoreerrors="true"/>
+                                <get 
src="http://svn.apache.org/repos/asf/struts/struts1/trunk/tiles/src/main/resources/org/apache/struts/resources/tiles-config_1_3.dtd";
+                                     
dest="${project.build.directory}/site/dtds/tiles-config_1_3.dtd"
+                                     ignoreerrors="true"/>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
     </build>
-    
+
 </project>


Reply via email to