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 43946] New: - manifest-only jars are broken - whenmanifestonly has no effect
Date Fri, 23 Nov 2007 08:25:14 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=43946>.
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=43946

           Summary: manifest-only jars are broken - whenmanifestonly has no
                    effect
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tim.vanholder@anubex.com


When trying to build a manifest-only jar, I always get

    [jar] Warning: skipping jar archive foo.jar because no files were included.
    [jar] Building jar: foo.jar

instead of the expected

    [jar] Building jar: foo.jar

(note that the jar file IS built, despite ant saying it is skipped)

Setting whenmanifestonly to any value (even 'fail') on the jar task has no effect.
Looking at the ant sources, it seems likely that the problem is that both Jar
and its superclass Zip have a emptyBehaviour field - and Zip's version has
'skip' as default (and unchangeable via Jar) value.
Removing Jar's emptyBehaviour field gets rid of the warning, and makes the
whenmanifestonly attribute work.

-- 
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