https://issues.apache.org/bugzilla/show_bug.cgi?id=47470
Summary: Invalid warning when creating a ResourceCollection
based Archive
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
STEPS TO REPRODUCE
A archive can be created based on ResourceCollection types, e.g. by using the
built-in types union, intersect and difference or some custom types:
<jar destfile="foo.jar">
<union>
<fileset dir="dir1"/>
<fileset dir="dir2"/>
</union>
</jar>
EXPECTED BEHAVIOR
The archive should be created without any warning.
ACTUAL BEHAVIOR
The archive is properly created, but the following warning is issued:
"skipping jar archive foo.jar because no files were included."
ANALYSIS
The Zip implementation seems to have two paths, one for ResourceCollections and
one for FileSets. If the latter produces no files (because no nested FileSets
are specified) the warning is issued even if there is a resource collection.
RELATED ISSUE
Bug 43946: manifest-only jars are broken - whenmanifestonly has no effect
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.