You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2010/03/28 18:27:30 UTC

svn commit: r928444 - /httpcomponents/httpcore/trunk/src/main/assembly/build.xml

Author: sebb
Date: Sun Mar 28 16:27:30 2010
New Revision: 928444

URL: http://svn.apache.org/viewvc?rev=928444&view=rev
Log:
Use property for source file types
Add *.apt and *.xsl to list

Modified:
    httpcomponents/httpcore/trunk/src/main/assembly/build.xml

Modified: httpcomponents/httpcore/trunk/src/main/assembly/build.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/src/main/assembly/build.xml?rev=928444&r1=928443&r2=928444&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/src/main/assembly/build.xml (original)
+++ httpcomponents/httpcore/trunk/src/main/assembly/build.xml Sun Mar 28 16:27:30 2010
@@ -25,6 +25,10 @@
  -->
 <project name="assembly-postprocess" default="fixarchives" basedir=".">
 
+  <!-- Use property to define the source file types, as it is needed twice -->
+  <property name="src.file.types" 
+  	value="**/*.txt **/*.xml **/*.properties **/*.java **/*.html **/*.css **/*.apt **/*.xsl"/>
+
   <target name="fixarchives" depends="_eolcheck,fixzip,fixtgz">
   </target>
 
@@ -34,7 +38,7 @@
     <delete dir="${tmp.dir}" />
     <unzip src="${zip.file}" dest="${tmp.dir}"/>
     <fixcrlf srcdir="${tmp.dir}" eol="crlf" eof="remove" fixlast="false"
-        includes="**/*.txt, **/*.xml, **/*.properties, **/*.java, **/*.html, **/*.css" />
+        includes="${src.file.types}" />
     <zip destfile="${zip.file}" basedir="${tmp.dir}" duplicate="preserve" />
     <delete dir="${tmp.dir}" />
   </target>  
@@ -47,7 +51,7 @@
     <gunzip src="${gz.file}" dest="${tar.file}"/>
     <untar src="${tar.file}" dest="${tmp.dir}"/>
     <fixcrlf srcdir="${tmp.dir}" eol="lf" eof="remove" fixlast="false"
-        includes="**/*.txt, **/*.xml, **/*.properties, **/*.java, **/*.html, **/*.css" />
+        includes="${src.file.types}" />
     <tar destfile="${tar.file}" basedir="${tmp.dir}" longfile="gnu"/>
     <gzip src="${tar.file}" destfile="${gz.file}"/>
     <delete file="${tar.file}"/>