jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1467490 - /jmeter/trunk/build.xml
Date Fri, 12 Apr 2013 22:02:53 GMT
Author: sebb
Date: Fri Apr 12 22:02:53 2013
New Revision: 1467490

URL: http://svn.apache.org/r1467490
Log:
Fix download_jars so it clears up old versions

Modified:
    jmeter/trunk/build.xml

Modified: jmeter/trunk/build.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/build.xml?rev=1467490&r1=1467489&r2=1467490&view=diff
==============================================================================
--- jmeter/trunk/build.xml (original)
+++ jmeter/trunk/build.xml Fri Apr 12 22:02:53 2013
@@ -2687,6 +2687,21 @@ run JMeter unless all the JMeter jars ar
                 <isset property="${zipprop}"/>
             </not>
         </condition>
+        <!-- Delete all but the desired version of the file -->
+        <loadresource property="wildCard">
+          <propertyresource name="jar"/>
+          <filterchain>
+            <tokenfilter>
+              <filetokenizer/>
+              <replaceregex pattern="-\d+\.\d+.*(\.jar|\.zip)" replace="-*\1"/>
+            </tokenfilter>
+          </filterchain>
+        </loadresource>
+        <echo level="info" message="Deleting ${wildCard} (excluding ${jar})"/>
+        <delete verbose="true">
+          <!-- Unfortunately commons-jexl jars don't have unique prefixes -->
+          <fileset dir="${path}" includes="${wildCard}" excludes="${jar} commons-jexl-*"/>
+        </delete>
         <!-- Emulate conditional execution; targets use if/unless to suppress execution
-->
         <antcall target="_get_jarfile"/>
         <antcall target="_get_zipfile"/>



Mime
View raw message