MPANT-7. Not obeying jar overrides. While this patch doesn't get every case, it does

get the common one of using an included lib.  I am using this succesfuly with commons-email's
ant build.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116257 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh committed 2004-11-23 17:14:26 +00:00
1 parent ccc462de40
commit 40b4ade85a
7 files changed
+37 -4

No files matched your search

Binary file not shown.
+6
View File
@@ -47,6 +47,12 @@
<assert:assertEquals expected="target" value="${defaulttargetdirValue}"
msg="defaulttargetdir property is not relative"/>
<!-- check obey jar override -->
<x:set var="countJarsDownload" select="count($buildXml/project/target[@name = 'get-deps']/get)"/>
<assert:assertEquals expected="1" value="${countJarsDownload.intValue().toString()}" msg="Should only download JUnit jar"/>
<x:set var="countJarsCopy" select="count($buildXml/project/target[@name = 'get-deps']/copy)"/>
<assert:assertEquals expected="1" value="${countJarsDownload.intValue().toString()}" msg="Should only copy the activation jar"/>
<!-- check test filesets -->
<x:set var="testFilesetDirs" select="$buildXml/project/target[@name = 'compile-tests']/copy/fileset/@dir"/>
<assert:assertEquals expected="src/test" value="${testFilesetDirs[0].value}"
+2
View File
@@ -0,0 +1,2 @@
maven.jar.override=on
maven.jar.activation = ${basedir}/lib/activation-1.0.2.jar
+9
View File
@@ -53,6 +53,15 @@
</developers>
<dependencies>
<!-- Used in testing maven.jar.override -->
<dependency>
<groupId>activation</groupId>
<artifactId>activation</artifactId>
<version>1.0.2</version>
<type>jar</type>
<properties/>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>