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

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