Fixes PR pkg/43752 Changes from Ant 1.8.0 TO Ant 1.8.1: - Changes that could break older environments: * ant-trax.jar is no longer produced since TrAX is included in JDK 1.4+. * Ant no longer ships with Apache Xerces-J or the XML APIs but relies on the Java runtime to provide a parser and matching API versions. * The stylebook ant task and the ant-stylebook.jar are removed. - Fixed bugs: * Tasks that iterate over task or type definitions, references or targets now iterate over copies instead of the live maps to avoid ConcurrentModificationExceptions if another thread changes the maps. * The filesmatch condition threw a NullPointerException when comparing text files and the second file contained fewer lines than the first one. * Regression: The <ear> task would allow multiple META-INF/application.xml files to be added. * VectorSet#remove(Object) would fail if the size of the vector equaled its capacity. * Regression : ant -diagnostics was returning with exit code 1 * Fix for exec task sometimes inserts extraneous newlines * SymlinkTest#testSymbolicLinkUtilsMethods failing on MacOS * If <concat>'s first resourcecollection child is a <resources>, any subsequently added child resourcecollection joins the first. * <get> with an invalid URL could trigger an NPE in some JVMs. * Broken Pipe issue under Ubuntu Linux * Properties wrongly read from file or not update during read * AntClassLoader in Ant 1.8.0 has been considerably slower than in 1.7.1 * ANT_CMD_LINE_ARGS are rippling through lower level Ant usage * email : IO error sending mail with plain mimetype * the complete-ant-cmd.pl script failed to create a proper cache of target if "ant -p" failed. * <rmic>'s sourcebase attribute was broken. * <copy>'s failonerror didn't work as expected when copying a single element resource collection to a file. * <get> no longer followed redirects if the redirect URL was relative and not an absolute URL. * fixed a performance degradation in the code that expands property references. * <jar filesetmanifest="merge"> was broken on Windows. * <symlink> delete failed if the link attribute was a relative path to a link inside the current directory without a leading ".". * <telnet> and <rexec> failed to find the expected strings when waiting for responses and thus always failed. - Other changes: * Project provides new get methods that return copies instead of the live maps of task and type definitions, references and targets. * Ant is now more lenient with ZIP extra fields and will be able to read archives that it failed to read in earlier versions. * The <zip> family of tasks has been sped up for bigger archives. * Add removeKeepExtension option to NetRexxC task. * Add prefix attribute to loadproperties task. * Add resource attribute to length task. * PropertyResource will effectively proxy another Resource if ${name} evaluates to a Resource object. * Added forcestring attribute to equals condition to force evaluation of Object args as strings; previously only API-level usage of the equals condition allowed Object args, but Ant 1.8.x+ property evaluation may yield values of any type. * BuildFileTest.assertPropertyUnset() fails with a slightly more meaningful error message * <junit> will now throw an exception if a test name is empty. This used to manifest itself in unrelated errors like * A change that made <exec> more reliable on Windows (Bugzilla Report 5003) strongly impacts the performance for commands that execute quickly, like attrib. Basically no single execution of a command could take less than a second on Windows. A few timeouts have been tweaked to allow these commands to finish more quickly but still they will take longer than they did with Ant 1.7.1. * Added SimpleBigProjectLogger, intermediate between NoBannerLogger and BigProjectLogger. * <mappedresources> supports new attributes enablemultiplemappings and cache. * Added the augment task to manipulate existing references via Ant's basic introspection mechanisms.
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.28 2010/12/05 10:05:06 tonio Exp $
|
|
#
|
|
|
|
DISTNAME= apache-ant-1.8.1-bin
|
|
PKGNAME= ${DISTNAME:S/-bin//}
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=ant/binaries/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= tonio@NetBSD.org
|
|
HOMEPAGE= http://ant.apache.org/
|
|
COMMENT= "Apache Project's Java-Based make(1) replacement"
|
|
|
|
LICENSE= apache-2.0
|
|
|
|
# Up to version 1.5.1 inclusive this was known as "jakarta-ant".
|
|
CONFLICTS= jakarta-ant>=0
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
|
|
USE_JAVA= run
|
|
USE_JAVA2= yes
|
|
USE_TOOLS+= pax
|
|
NO_BUILD= yes
|
|
|
|
SUBST_CLASSES+= ant
|
|
SUBST_FILES.ant= bin/ant
|
|
SUBST_STAGE.ant= pre-configure
|
|
SUBST_SED.ant= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
|
|
SUBST_SED.ant+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
INSTALLATION_DIRS= bin lib/java/ant share/doc/java/ant
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${DESTDIR}${PREFIX}/lib/java/ant
|
|
${INSTALL_DATA} ${WRKSRC}/lib/ant-*.jar ${DESTDIR}${PREFIX}/lib/java/ant
|
|
cd ${WRKSRC}/docs && pax -rw -pmp * ${DESTDIR}${PREFIX}/share/doc/java/ant
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/java/ant
|
|
${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/java/ant
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|