logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r558242 - in /logging/site/trunk/author: build.xml pom.xml
Date Sat, 21 Jul 2007 04:42:12 GMT
Author: carnold
Date: Fri Jul 20 21:42:11 2007
New Revision: 558242

URL: http://svn.apache.org/viewvc?view=rev&rev=558242
Log:
Bug 37930: Set mime-types when deploy web content

Modified:
    logging/site/trunk/author/build.xml
    logging/site/trunk/author/pom.xml

Modified: logging/site/trunk/author/build.xml
URL: http://svn.apache.org/viewvc/logging/site/trunk/author/build.xml?view=diff&rev=558242&r1=558241&r2=558242
==============================================================================
--- logging/site/trunk/author/build.xml (original)
+++ logging/site/trunk/author/build.xml Fri Jul 20 21:42:11 2007
@@ -44,12 +44,43 @@
 	</target>
 
 	<target name="post-site" depends="checkout-site, update-site"/>
+
+        <target name="mime=html">
+            <exec executable="svn">
+		<arg value="propset"/>
+                <arg value="svn:mime-type"/>
+                <arg value="text/html"/>
+                <arg value="${src.html}"/>
+            </exec>
+        </target>
+
+        <target name="mime=css">
+            <exec executable="svn">
+		<arg value="propset"/>
+                <arg value="svn:mime-type"/>
+                <arg value="text/css"/>
+                <arg value="${src.css}"/>
+            </exec>
+        </target>
+	
 	
 	<target name="site-deploy">
 		<!-- Add any new files (and generate innocuous warnings for the existing content)  -->
-		<exec executable="csh" dir="target/site-deploy" failonerror="true">
+                <delete file="target/site-deploy/svn-commit.tmp~"/>
+		<exec executable="bash" dir="target/site-deploy" failonerror="true">
 			<arg line='-c "svn add --force *"'/>
 		</exec>
+                <taskdef name="foreach" classname="net.sf.antcontrib.logic.ForEach" />
+                <foreach target="mime=html" param="src.html">
+                        <path>
+                                <fileset dir="target/site-deploy" includes="**/*.html"/>
+                        </path>
+                </foreach>
+                <foreach target="mime=css" param="src.css">
+                        <path>
+                                <fileset dir="target/site-deploy" includes="**/*.css"/>
+                        </path>
+                </foreach>
 		<!--  requires that SVN_EDITOR, VISUAL or EDITOR being set to edit commit description
-->
 		<exec executable="svn" dir="target/site-deploy" failonerror="true">
 		    <arg value="commit"/>

Modified: logging/site/trunk/author/pom.xml
URL: http://svn.apache.org/viewvc/logging/site/trunk/author/pom.xml?view=diff&rev=558242&r1=558241&r2=558242
==============================================================================
--- logging/site/trunk/author/pom.xml (original)
+++ logging/site/trunk/author/pom.xml Fri Jul 20 21:42:11 2007
@@ -314,6 +314,11 @@
             <artifactId>ant-nodeps</artifactId>
             <version>1.6.5</version>
           </dependency>
+          <dependency>
+            <groupId>ant-contrib</groupId>
+            <artifactId>ant-contrib</artifactId>
+            <version>1.0b2</version>
+          </dependency>
         </dependencies>
       </plugin>	 
 	  </plugins>  



Mime
View raw message