You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2008/10/08 20:23:43 UTC

svn commit: r702953 - in /httpcomponents/httpcore/trunk: pom.xml src/main/assembly/build.xml

Author: olegk
Date: Wed Oct  8 11:23:43 2008
New Revision: 702953

URL: http://svn.apache.org/viewvc?rev=702953&view=rev
Log:
Added Ant script to fix line delimiters in ZIP packages

Added:
    httpcomponents/httpcore/trunk/src/main/assembly/build.xml   (with props)
Modified:
    httpcomponents/httpcore/trunk/pom.xml

Modified: httpcomponents/httpcore/trunk/pom.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/pom.xml?rev=702953&r1=702952&r2=702953&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/pom.xml (original)
+++ httpcomponents/httpcore/trunk/pom.xml Wed Oct  8 11:23:43 2008
@@ -115,7 +115,26 @@
           <tarLongFileMode>gnu</tarLongFileMode>
         </configuration>
       </plugin>
-
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <inherited>false</inherited>
+        <configuration>
+          <tasks>
+            <ant antfile="src/main/assembly/build.xml">
+              <property name="target" value="${project.build.directory}"/>
+              <property name="package.zip" value="${pom.artifactId}-${pom.version}-bin.zip"/>
+            </ant>
+            <ant antfile="src/main/assembly/build.xml">
+              <property name="target" value="${project.build.directory}"/>
+              <property name="package.zip" value="${pom.artifactId}-${pom.version}-src.zip"/>
+            </ant>
+            <ant antfile="src/main/assembly/build.xml">
+              <property name="target" value="${project.build.directory}"/>
+              <property name="package.zip" value="${pom.artifactId}-${pom.version}-osgi-bin.zip"/>
+            </ant>
+          </tasks>
+        </configuration>
+      </plugin>
       <plugin>
         <artifactId>maven-clover-plugin</artifactId>
         <configuration>

Added: httpcomponents/httpcore/trunk/src/main/assembly/build.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/src/main/assembly/build.xml?rev=702953&view=auto
==============================================================================
--- httpcomponents/httpcore/trunk/src/main/assembly/build.xml (added)
+++ httpcomponents/httpcore/trunk/src/main/assembly/build.xml Wed Oct  8 11:23:43 2008
@@ -0,0 +1,12 @@
+<project name="assembly-postprocess" default="fixzip" basedir=".">
+  <target name="fixzip">
+    <property name="tmp.dir" location="${target}/tmp"/>    
+    <property name="zip.file" location="${target}/${package.zip}"/>    
+    <delete dir="${tmp.dir}" />
+    <unzip src="${zip.file}" dest="${tmp.dir}"/>
+    <fixcrlf srcdir="${tmp.dir}" eol="dos" eof="remove"
+        includes="**/*.txt, **/*.xml, **/*.properties, **/*.java, **/*.html, **/*.css" />
+    <zip destfile="${zip.file}" basedir="${tmp.dir}" duplicate="preserve" />
+    <delete dir="${tmp.dir}" />
+  </target>  
+</project>

Propchange: httpcomponents/httpcore/trunk/src/main/assembly/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: httpcomponents/httpcore/trunk/src/main/assembly/build.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: httpcomponents/httpcore/trunk/src/main/assembly/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml