You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2007/07/21 19:22:26 UTC

svn commit: r558356 - in /logging/log4j/companions/component/trunk: build.xml pom.xml

Author: carnold
Date: Sat Jul 21 10:22:25 2007
New Revision: 558356

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

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

Modified: logging/log4j/companions/component/trunk/build.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/build.xml?view=diff&rev=558356&r1=558355&r2=558356
==============================================================================
--- logging/log4j/companions/component/trunk/build.xml (original)
+++ logging/log4j/companions/component/trunk/build.xml Sat Jul 21 10:22:25 2007
@@ -137,17 +137,48 @@
 	</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"/>
 		</exec>
 	</target>
-	
-
+  
 </project>

Modified: logging/log4j/companions/component/trunk/pom.xml
URL: http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/pom.xml?view=diff&rev=558356&r1=558355&r2=558356
==============================================================================
--- logging/log4j/companions/component/trunk/pom.xml (original)
+++ logging/log4j/companions/component/trunk/pom.xml Sat Jul 21 10:22:25 2007
@@ -157,6 +157,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