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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to