hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r702953 - in /httpcomponents/httpcore/trunk: pom.xml src/main/assembly/build.xml
Date Wed, 08 Oct 2008 18:23:43 GMT
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



Mime
View raw message