Blame SOURCES/librepository-1.1.3-remove-ant-contrib-support.patch

6aaa9b
diff --git a/common_build.xml b/common_build.xml
6aaa9b
index acdfad2..7ce88d9 100644
6aaa9b
--- a/common_build.xml
6aaa9b
+++ b/common_build.xml
6aaa9b
@@ -152,9 +152,6 @@ TYPICAL TARGET SEQUENCE
6aaa9b
   
6aaa9b
             value="${build.cache.dir}/cobertura"
6aaa9b
             description="Directory where the Cobertura jar (and dependencies) is placed after it is auto-downloaded by the build" />
6aaa9b
-  
6aaa9b
-            value="${build.cache.dir}/ant-contrib"
6aaa9b
-            description="Directory where the Ant-Contrib jar (and dependencies) is placed after it is auto-downloaded by the build" />
6aaa9b
   
6aaa9b
             value="${build.cache.dir}/pentaho"
6aaa9b
             description="Directory where the Pentaho ant tasks jar (and dependencies) is placed after it is auto-downloaded by the build" />
6aaa9b
@@ -325,68 +322,6 @@ TYPICAL TARGET SEQUENCE
6aaa9b
   </path>
6aaa9b
 
6aaa9b
 
6aaa9b
-  
6aaa9b
-	    install-antcontrib
6aaa9b
-	    
6aaa9b
-	    (Fetches and) installs ant-contrib tasks.
6aaa9b
-	    ====================================================================-->
6aaa9b
-  
6aaa9b
-          depends="antcontrib.download-check">
6aaa9b
-    <taskdef resource="net/sf/antcontrib/antlib.xml">
6aaa9b
-      <classpath>
6aaa9b
-        <fileset dir="${antcontrib.build.cache.dir}">
6aaa9b
-          <include name="*.jar" />
6aaa9b
-        </fileset>
6aaa9b
-      </classpath>
6aaa9b
-    </taskdef>
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-
6aaa9b
-  
6aaa9b
-	    antcontrib.download-check
6aaa9b
-	    
6aaa9b
-	    Fetches ant-contrib from sourceforge if it is not already present
6aaa9b
-	    ====================================================================-->
6aaa9b
-  <target name="antcontrib.download-check">
6aaa9b
-    <condition property="antcontrib.available">
6aaa9b
-      <and>
6aaa9b
-        <available file="${antcontrib.build.cache.dir}" />
6aaa9b
-        <available classname="net.sf.antcontrib.logic.IfTask">
6aaa9b
-          <classpath>
6aaa9b
-            <fileset dir="${antcontrib.build.cache.dir}">
6aaa9b
-              <include name="*.jar" />
6aaa9b
-            </fileset>
6aaa9b
-          </classpath>
6aaa9b
-        </available>
6aaa9b
-      </and>
6aaa9b
-    </condition>
6aaa9b
-    <antcall target="antcontrib.download" />
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-
6aaa9b
-  
6aaa9b
-	    antcontrib.download
6aaa9b
-	    
6aaa9b
-	    Fetches ant-contrib from sourceforge
6aaa9b
-	    ====================================================================-->
6aaa9b
-  <target name="antcontrib.download" unless="antcontrib.available">
6aaa9b
-    <mkdir dir="${tmp.build.cache.dir}" />
6aaa9b
-    
6aaa9b
-         dest="${tmp.build.cache.dir}/antcontrib.zip"
6aaa9b
-         usetimestamp="true" />
6aaa9b
-    <unzip src="${tmp.build.cache.dir}/antcontrib.zip" dest="${tmp.build.cache.dir}">
6aaa9b
-      <patternset>
6aaa9b
-        <include name="**/*.jar" />
6aaa9b
-      </patternset>
6aaa9b
-    </unzip>
6aaa9b
-    <copy todir="${antcontrib.build.cache.dir}">
6aaa9b
-      <fileset dir="${tmp.build.cache.dir}/ant-contrib">
6aaa9b
-        <include name="**/*.jar" />
6aaa9b
-      </fileset>
6aaa9b
-    </copy>
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-
6aaa9b
   
6aaa9b
 	    init
6aaa9b
 	    
6aaa9b
@@ -445,7 +380,7 @@ TYPICAL TARGET SEQUENCE
6aaa9b
     (Fetches and) installs the SVN ANT for use by this ant script
6aaa9b
     ====================================================================-->
6aaa9b
   
6aaa9b
-          depends="install-antcontrib, svnant.download-check">
6aaa9b
+          depends="svnant.download-check">
6aaa9b
     <if>
6aaa9b
       <istrue value="${svnant.isinstalled}" />
6aaa9b
       <then>
6aaa9b
@@ -491,58 +426,13 @@ TYPICAL TARGET SEQUENCE
6aaa9b
   </target>
6aaa9b
 
6aaa9b
 
6aaa9b
-  
6aaa9b
-        set-build.id
6aaa9b
-    
6aaa9b
-        Sets a property build.id to the either "development" or the svn revision
6aaa9b
-        if in release mode
6aaa9b
-        ====================================================================-->
6aaa9b
-  <target name="set-build.id" unless="build.id" depends="install-antcontrib">
6aaa9b
-    <if>
6aaa9b
-      <istrue value="${release}" />
6aaa9b
-      <then>
6aaa9b
-        <antcallback target="svn-revision" return="svn.revision" />
6aaa9b
-        <property name="build.id" value="${svn.revision}" />
6aaa9b
-      </then>
6aaa9b
-      <else>
6aaa9b
-        <property name="build.id" value="development" />
6aaa9b
-      </else>
6aaa9b
-    </if>
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-  
6aaa9b
-       version-properties: common Ant driven version file generation.  Projects that produce
6aaa9b
-       a package or packages should run this target.  Projects that produce
6aaa9b
-       jars only should NOT.
6aaa9b
-   ===================================================================================-->
6aaa9b
-  <target name="version-properties" depends="set-build.id">
6aaa9b
-    <tstamp>
6aaa9b
-      <format property="build.time" pattern="yyyy/MM/dd hh:mm aa"/>
6aaa9b
-    </tstamp>
6aaa9b
-    
6aaa9b
-              file="version.properties" comment="Release Build version info">
6aaa9b
-      <entry key="release.major.number" value="${release.major.number}" />
6aaa9b
-      <entry key="release.minor.number" value="${release.minor.number}" />
6aaa9b
-      <entry key="release.milestone.number" value="${release.milestone.number}" />
6aaa9b
-      <entry key="release.candidate.token" value="${release.candidate.token}" />
6aaa9b
-      <entry key="impl.vendor" value="${impl.vendor}" />
6aaa9b
-      <entry key="impl.version" value="${release.major.number}.${release.minor.number}.${release.milestone.number}.${build.id}" />
6aaa9b
-      <entry key="impl.title" value="${impl.title}" />
6aaa9b
-      <entry key="buildDate" value="${build.time}"/>
6aaa9b
-      <entry key="svn.revision" value="${build.id}"/>
6aaa9b
-      <entry key="release.build.number" default="0" type="int" operation="+" value="1" pattern="0000"/>
6aaa9b
-    </propertyfile>
6aaa9b
-    <property file="${basedir}/version.properties"/>
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-
6aaa9b
   
6aaa9b
 	    install-ivy
6aaa9b
 	    
6aaa9b
 	    (Fetches and) installs the IVY jar for use by this ant script
6aaa9b
 	    ====================================================================-->
6aaa9b
   
6aaa9b
-          depends="install-antcontrib,ivy.download-check">
6aaa9b
+          depends="ivy.download-check">
6aaa9b
     <if>
6aaa9b
       <istrue value="${ivy.isinstalled}" />
6aaa9b
       <then>
6aaa9b
@@ -602,7 +492,7 @@ TYPICAL TARGET SEQUENCE
6aaa9b
 	    Verifies that there are no SNAPSHOT dependencies defined in the ivy xml.
6aaa9b
 	    If there are SNAPSHOTS, fail the release build.
6aaa9b
 	    ====================================================================-->
6aaa9b
-  <target name="ivy.check-releasable" depends="install-ivy, install-antcontrib">
6aaa9b
+  <target name="ivy.check-releasable" depends="install-ivy">
6aaa9b
     <if>
6aaa9b
       <istrue value="${release}" />
6aaa9b
       <then>
6aaa9b
@@ -769,7 +659,7 @@ TYPICAL TARGET SEQUENCE
6aaa9b
 	    Publishes the jar file for this project to a Maven2 repository.
6aaa9b
 	    ====================================================================-->
6aaa9b
   
6aaa9b
-          depends="install-antcontrib,create-pom,ivy.deliver">
6aaa9b
+          depends="create-pom,ivy.deliver">
6aaa9b
     <antcall target="maven-publish-dependencies">
6aaa9b
       <param name="publish.groupId" value="${ivy.artifact.group}" />
6aaa9b
       <param name="publish.artifactId" value="${ivy.artifact.id}" />
6aaa9b
@@ -1038,12 +928,11 @@ TYPICAL TARGET SEQUENCE
6aaa9b
 	      - compile.pre      : anything needed to prep for compile
6aaa9b
 	      - compile.compile  : the actual compilation step
6aaa9b
 	      - compile.src_copy : copying the source into the bin directory
6aaa9b
-	      - compile.res_copy : copying the resources into the bin directory
6aaa9b
 	      - compile.lic_copy : copying the license information into the bin directory
6aaa9b
 	      - compile.post     : anything needed after the compile is done 
6aaa9b
 	    ====================================================================-->
6aaa9b
   
6aaa9b
-          depends="init, compile.pre, compile.compile, compile.src_copy, compile.res_copy, compile.lic_copy, compile.post"
6aaa9b
+          depends="init, compile.pre, compile.compile, compile.src_copy, compile.lic_copy, compile.post"
6aaa9b
           description="Performs all the steps to prepare the bin directory with a complete compilation" />
6aaa9b
 
6aaa9b
 
6aaa9b
@@ -1075,37 +964,6 @@ TYPICAL TARGET SEQUENCE
6aaa9b
     </javac>
6aaa9b
   </target>
6aaa9b
 
6aaa9b
-
6aaa9b
-  
6aaa9b
-	    compile.res_copy
6aaa9b
-	    
6aaa9b
-	    Copies any needed resources into the classes directory.  Will not
6aaa9b
-	    duplicate copying of resources from src tree (handled by compile.src_copy
6aaa9b
-	    if jar.include.source is set.
6aaa9b
-	    ====================================================================-->
6aaa9b
-  <target name="compile.res_copy" depends="install-antcontrib">
6aaa9b
-    <if>
6aaa9b
-      <available file="${res.dir}" />
6aaa9b
-      <then>
6aaa9b
-        <copy todir="${classes.dir}">
6aaa9b
-          <fileset dir="${res.dir}" />
6aaa9b
-        </copy>
6aaa9b
-      </then>
6aaa9b
-    </if>
6aaa9b
-
6aaa9b
-    <if>
6aaa9b
-      <not>
6aaa9b
-        <isset property="jar.include.source" />
6aaa9b
-      </not>
6aaa9b
-      <then>
6aaa9b
-        <copy todir="${classes.dir}" flatten="false">
6aaa9b
-          <fileset dir="${src.dir}" excludes="**/*.java" />
6aaa9b
-        </copy>
6aaa9b
-      </then>
6aaa9b
-    </if>
6aaa9b
-  </target>
6aaa9b
-
6aaa9b
-
6aaa9b
   
6aaa9b
 	    compile.src_copy
6aaa9b
 	    
6aaa9b
@@ -1152,7 +1010,7 @@ TYPICAL TARGET SEQUENCE
6aaa9b
 	    
6aaa9b
 	    Creates a jar file from the bin directory
6aaa9b
 	    ====================================================================-->
6aaa9b
-  <target name="jar" depends="compile,set-build.id,generate.manifest" description="Jars up the bin directory after a compile">
6aaa9b
+  <target name="jar" depends="compile,generate.manifest" description="Jars up the bin directory after a compile">
6aaa9b
     <jar destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" manifest="${dist.manifest.file}">
6aaa9b
       <fileset dir="${classes.dir}" />
6aaa9b
     </jar>
6aaa9b
@@ -1165,7 +1023,7 @@ TYPICAL TARGET SEQUENCE
6aaa9b
 	    Creates a new manifest file if one is not specified, or updates
6aaa9b
 	    an existing manifest file if one is specified.
6aaa9b
 	    ====================================================================-->
6aaa9b
-  <target name="generate.manifest" depends="init,set-build.id">
6aaa9b
+  <target name="generate.manifest" depends="init">
6aaa9b
     <delete file="${dist.manifest.file}" />
6aaa9b
     <touch file="${dist.manifest.file}" />
6aaa9b
     <copy file="${manifest.file}" tofile="${dist.manifest.file}" overwrite="true" failonerror="false" />