logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carn...@apache.org
Subject svn commit: r558363 - in /logging/log4j/companions/receivers/trunk: build.xml pom.xml
Date Sat, 21 Jul 2007 17:51:20 GMT
Author: carnold
Date: Sat Jul 21 10:51:19 2007
New Revision: 558363

URL: http://svn.apache.org/viewvc?view=rev&rev=558363
Log:
Bug 42102: Set mime-type on staged web content

Modified:
    logging/log4j/companions/receivers/trunk/build.xml
    logging/log4j/companions/receivers/trunk/pom.xml

Modified: logging/log4j/companions/receivers/trunk/build.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/receivers/trunk/build.xml?view=diff&rev=558363&r1=558362&r2=558363
==============================================================================
--- logging/log4j/companions/receivers/trunk/build.xml (original)
+++ logging/log4j/companions/receivers/trunk/build.xml Sat Jul 21 10:51:19 2007
@@ -153,15 +153,47 @@
 
 	<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"/>
 		</exec>
 	</target>
-	
 </project>

Modified: logging/log4j/companions/receivers/trunk/pom.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/receivers/trunk/pom.xml?view=diff&rev=558363&r1=558362&r2=558363
==============================================================================
--- logging/log4j/companions/receivers/trunk/pom.xml (original)
+++ logging/log4j/companions/receivers/trunk/pom.xml Sat Jul 21 10:51:19 2007
@@ -154,6 +154,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>	 
 	  <plugin>



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


Mime
View raw message