ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41004] - Zipfileset with refid + prefix stopped working.
Date Tue, 21 Nov 2006 09:58:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41004>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41004





------- Additional Comments From ajbanck@informatica.com  2006-11-21 01:58 -------
(From update of attachment 19149)
>Index: src/main/org/apache/tools/ant/types/ArchiveFileSet.java
>===================================================================
>--- src/main/org/apache/tools/ant/types/ArchiveFileSet.java	(revision 475170)
>+++ src/main/org/apache/tools/ant/types/ArchiveFileSet.java	(working copy)
>@@ -178,7 +178,11 @@
>      * @param prefix The prefix to prepend to entries in the archive file.
>      */
>     public void setPrefix(String prefix) {
>-        checkAttributesAllowed();
>+        if (isReference()
>+            && (getRefid().getReferencedObject(getProject())
>+                instanceof ArchiveFileSet)) {
>+            checkAttributesAllowed();
>+        }
>         if (!prefix.equals("") && !fullpath.equals("")) {
>             throw new BuildException("Cannot set both fullpath and prefix attributes");
>         }


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message