* Ensure that some older versions of third-party libraries are removed when we do the jar-check, we saw some strange and hard-to-find build-errors lately, e.g. CI fails to run JaCoCo because of outdated asm-all-4.jar being still available.

* Include new "release-notes" target in jenkins-target

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1615453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2014-08-03 21:30:30 +00:00
parent bacc106cb7
commit 6dea78adb3
1 changed files with 17 additions and 3 deletions

View File

@ -339,7 +339,21 @@ under the License.
</target>
<target name="check-jars">
<condition property="jars.present">
<!-- remove previous versions of third-party jars to prevent them from lingering around,
we often had hard-to-find build/CI-problems because of these! -->
<delete verbose="true">
<fileset dir="${main.lib}">
<include name="ant-1.8*"/>
<include name="asm-all-4*"/>
<include name="commons-codec-1.5*"/>
<include name="commons-logging-1.1.jar"/>
<include name="jacoco-0.6*"/>
<include name="log4j-1.2.13*"/>
<include name="org.jacoco.*-0.6.*"/>
</fileset>
</delete>
<condition property="jars.present">
<or>
<and>
<available file="${main.commons-logging.jar}"/>
@ -1328,8 +1342,8 @@ under the License.
</target>
<target name="gump" depends="compile-all, test-all, jar"/>
<target name="jenkins" depends="compile-all, test-all, jar, javadocs, assemble, findbugs, rat-check"/>
<target name="jenkins" depends="compile-all, test-all, jar, javadocs, assemble, findbugs, release-notes, rat-check"/>
<available property="maven.ant.tasks.present" classname="org.apache.maven.artifact.ant.Pom"/>
<target name="maven.ant.tasks-check">
<fail unless="maven.ant.tasks.present">