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

1becd5
diff --git a/common_build.xml b/common_build.xml
1becd5
index 3a42daa..5575f19 100644
1becd5
--- a/common_build.xml
1becd5
+++ b/common_build.xml
1becd5
@@ -152,9 +152,6 @@
1becd5
   
1becd5
             value="${build.cache.dir}/cobertura"
1becd5
             description="Directory where the Cobertura jar (and dependencies) is placed after it is auto-downloaded by the build" />
1becd5
-  
1becd5
-            value="${build.cache.dir}/ant-contrib"
1becd5
-            description="Directory where the Ant-Contrib jar (and dependencies) is placed after it is auto-downloaded by the build" />
1becd5
   
1becd5
             value="${build.cache.dir}/pentaho"
1becd5
             description="Directory where the Pentaho ant tasks jar (and dependencies) is placed after it is auto-downloaded by the build" />
1becd5
@@ -326,68 +323,6 @@
1becd5
 
1becd5
 
1becd5
   
1becd5
-	    install-antcontrib
1becd5
-	    
1becd5
-	    (Fetches and) installs ant-contrib tasks.
1becd5
-	    ====================================================================-->
1becd5
-  
1becd5
-          depends="antcontrib.download-check">
1becd5
-    <taskdef resource="net/sf/antcontrib/antlib.xml">
1becd5
-      <classpath>
1becd5
-        <fileset dir="${antcontrib.build.cache.dir}">
1becd5
-          <include name="*.jar" />
1becd5
-        </fileset>
1becd5
-      </classpath>
1becd5
-    </taskdef>
1becd5
-  </target>
1becd5
-
1becd5
-
1becd5
-  
1becd5
-	    antcontrib.download-check
1becd5
-	    
1becd5
-	    Fetches ant-contrib from sourceforge if it is not already present
1becd5
-	    ====================================================================-->
1becd5
-  <target name="antcontrib.download-check">
1becd5
-    <condition property="antcontrib.available">
1becd5
-      <and>
1becd5
-        <available file="${antcontrib.build.cache.dir}" />
1becd5
-        <available classname="net.sf.antcontrib.logic.IfTask">
1becd5
-          <classpath>
1becd5
-            <fileset dir="${antcontrib.build.cache.dir}">
1becd5
-              <include name="*.jar" />
1becd5
-            </fileset>
1becd5
-          </classpath>
1becd5
-        </available>
1becd5
-      </and>
1becd5
-    </condition>
1becd5
-    <antcall target="antcontrib.download" />
1becd5
-  </target>
1becd5
-
1becd5
-
1becd5
-  
1becd5
-	    antcontrib.download
1becd5
-	    
1becd5
-	    Fetches ant-contrib from sourceforge
1becd5
-	    ====================================================================-->
1becd5
-  <target name="antcontrib.download" unless="antcontrib.available">
1becd5
-    <mkdir dir="${tmp.build.cache.dir}" />
1becd5
-    
1becd5
-         dest="${tmp.build.cache.dir}/antcontrib.zip"
1becd5
-         usetimestamp="true" />
1becd5
-    <unzip src="${tmp.build.cache.dir}/antcontrib.zip" dest="${tmp.build.cache.dir}">
1becd5
-      <patternset>
1becd5
-        <include name="**/*.jar" />
1becd5
-      </patternset>
1becd5
-    </unzip>
1becd5
-    <copy todir="${antcontrib.build.cache.dir}">
1becd5
-      <fileset dir="${tmp.build.cache.dir}/ant-contrib">
1becd5
-        <include name="**/*.jar" />
1becd5
-      </fileset>
1becd5
-    </copy>
1becd5
-  </target>
1becd5
-
1becd5
-
1becd5
-  
1becd5
 	    init
1becd5
 	    
1becd5
 	    Ensures that all the required directories exist before processing
1becd5
@@ -445,7 +380,7 @@
1becd5
     (Fetches and) installs the SVN ANT for use by this ant script
1becd5
     ====================================================================-->
1becd5
   
1becd5
-          depends="install-antcontrib, svnant.download-check">
1becd5
+          depends="svnant.download-check">
1becd5
     <if>
1becd5
       <istrue value="${svnant.isinstalled}" />
1becd5
       <then>
1becd5
@@ -492,57 +427,12 @@
1becd5
 
1becd5
 
1becd5
   
1becd5
-        set-build.id
1becd5
-    
1becd5
-        Sets a property build.id to the either "development" or the svn revision
1becd5
-        if in release mode
1becd5
-        ====================================================================-->
1becd5
-  <target name="set-build.id" unless="build.id" depends="install-antcontrib">
1becd5
-    <if>
1becd5
-      <istrue value="${release}" />
1becd5
-      <then>
1becd5
-        <antcallback target="svn-revision" return="svn.revision" />
1becd5
-        <property name="build.id" value="${svn.revision}" />
1becd5
-      </then>
1becd5
-      <else>
1becd5
-        <property name="build.id" value="development" />
1becd5
-      </else>
1becd5
-    </if>
1becd5
-  </target>
1becd5
-
1becd5
-  
1becd5
-       version-properties: common Ant driven version file generation.  Projects that produce
1becd5
-       a package or packages should run this target.  Projects that produce
1becd5
-       jars only should NOT.
1becd5
-   ===================================================================================-->
1becd5
-  <target name="version-properties" depends="set-build.id">
1becd5
-    <tstamp>
1becd5
-      <format property="build.time" pattern="yyyy/MM/dd hh:mm aa"/>
1becd5
-    </tstamp>
1becd5
-    
1becd5
-              file="version.properties" comment="Release Build version info">
1becd5
-      <entry key="release.major.number" value="${release.major.number}" />
1becd5
-      <entry key="release.minor.number" value="${release.minor.number}" />
1becd5
-      <entry key="release.milestone.number" value="${release.milestone.number}" />
1becd5
-      <entry key="release.candidate.token" value="${release.candidate.token}" />
1becd5
-      <entry key="impl.vendor" value="${impl.vendor}" />
1becd5
-      <entry key="impl.version" value="${release.major.number}.${release.minor.number}.${release.milestone.number}.${build.id}" />
1becd5
-      <entry key="impl.title" value="${impl.title}" />
1becd5
-      <entry key="buildDate" value="${build.time}"/>
1becd5
-      <entry key="svn.revision" value="${build.id}"/>
1becd5
-      <entry key="release.build.number" default="0" type="int" operation="+" value="1" pattern="0000"/>
1becd5
-    </propertyfile>
1becd5
-    <property file="${basedir}/version.properties"/>
1becd5
-  </target>
1becd5
-
1becd5
-
1becd5
-  
1becd5
 	    install-ivy
1becd5
 	    
1becd5
 	    (Fetches and) installs the IVY jar for use by this ant script
1becd5
 	    ====================================================================-->
1becd5
   
1becd5
-          depends="install-antcontrib,ivy.download-check">
1becd5
+          depends="ivy.download-check">
1becd5
     <if>
1becd5
       <istrue value="${ivy.isinstalled}" />
1becd5
       <then>
1becd5
@@ -602,7 +492,7 @@
1becd5
 	    Verifies that there are no SNAPSHOT dependencies defined in the ivy xml.
1becd5
 	    If there are SNAPSHOTS, fail the release build.
1becd5
 	    ====================================================================-->
1becd5
-  <target name="ivy.check-releasable" depends="install-ivy, install-antcontrib">
1becd5
+  <target name="ivy.check-releasable" depends="install-ivy">
1becd5
     <if>
1becd5
       <istrue value="${release}" />
1becd5
       <then>
1becd5
@@ -769,7 +659,7 @@
1becd5
 	    Publishes the jar file for this project to a Maven2 repository.
1becd5
 	    ====================================================================-->
1becd5
   
1becd5
-          depends="install-antcontrib,create-pom,ivy.deliver">
1becd5
+          depends="create-pom,ivy.deliver">
1becd5
     <antcall target="maven-publish-dependencies">
1becd5
       <param name="publish.groupId" value="${ivy.artifact.group}" />
1becd5
       <param name="publish.artifactId" value="${ivy.artifact.id}" />
1becd5
@@ -1082,26 +972,10 @@
1becd5
 	    duplicate copying of resources from src tree (handled by compile.src_copy
1becd5
 	    if jar.include.source is set.
1becd5
 	    ====================================================================-->
1becd5
-  <target name="compile.res_copy" depends="install-antcontrib">
1becd5
-    <if>
1becd5
-      <available file="${res.dir}" />
1becd5
-      <then>
1becd5
-        <copy todir="${classes.dir}">
1becd5
-          <fileset dir="${res.dir}" />
1becd5
-        </copy>
1becd5
-      </then>
1becd5
-    </if>
1becd5
-
1becd5
-    <if>
1becd5
-      <not>
1becd5
-        <isset property="jar.include.source" />
1becd5
-      </not>
1becd5
-      <then>
1becd5
-        <copy todir="${classes.dir}" flatten="false">
1becd5
-          <fileset dir="${src.dir}" excludes="**/*.java" />
1becd5
-        </copy>
1becd5
-      </then>
1becd5
-    </if>
1becd5
+  <target name="compile.res_copy">
1becd5
+    <copy todir="${classes.dir}" flatten="false">
1becd5
+      <fileset dir="${src.dir}" excludes="**/*.java" />
1becd5
+    </copy>
1becd5
   </target>
1becd5
 
1becd5
 
1becd5
@@ -1151,7 +1025,7 @@
1becd5
 	    
1becd5
 	    Creates a jar file from the bin directory
1becd5
 	    ====================================================================-->
1becd5
-  <target name="jar" depends="compile,set-build.id,generate.manifest" description="Jars up the bin directory after a compile">
1becd5
+  <target name="jar" depends="compile,generate.manifest" description="Jars up the bin directory after a compile">
1becd5
     <jar destfile="${dist.dir}/${ivy.artifact.id}-${project.revision}.jar" manifest="${dist.manifest.file}">
1becd5
       <fileset dir="${classes.dir}" />
1becd5
     </jar>
1becd5
@@ -1164,7 +1038,7 @@
1becd5
 	    Creates a new manifest file if one is not specified, or updates
1becd5
 	    an existing manifest file if one is specified.
1becd5
 	    ====================================================================-->
1becd5
-  <target name="generate.manifest" depends="init,set-build.id">
1becd5
+  <target name="generate.manifest" depends="init">
1becd5
     <delete file="${dist.manifest.file}" />
1becd5
     <touch file="${dist.manifest.file}" />
1becd5
     <copy file="${manifest.file}" tofile="${dist.manifest.file}" overwrite="true" failonerror="false" />
1becd5
@@ -1648,4 +1522,4 @@
1becd5
     </dot-classpath>
1becd5
   </target>
1becd5
 
1becd5
-</project>
1becd5
\ No newline at end of file
1becd5
+</project>