Issue Details (XML | Word | Printable)

Key: MASSEMBLY-221
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Jim Crossley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Assembly Plugin

Filtering doesn't work when a file matches both a <fileSet> and a <file>

Created: 18/Jun/07 10:52 AM   Updated: 01/Feb/08 10:37 AM
Component/s: None
Affects Version/s: 2.2-beta-1, 2.2-beta-3, 2.2
Fix Version/s: 2.2-beta-2

Time Tracking:
Not Specified

File Attachments: 1. File example.tgz (1 kB)

Environment: Linux, JDK 1.5
Issue Links:
Related
 


 Description  « Hide
When a subset of files in a <fileSet> need to be filtered, separate <file> elements are required for each file. In 2.1, this worked, but in 2.2 the files seem to be filtered in the target/archive-tmp directory, but they don't make it into the zip file. A simple example project demonstrating the problem is attached.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jim Crossley added a comment - 18/Jun/07 10:57 AM
If the <fileSet> element supported filtering, this bug would be obsolete.

Fabrice BELLINGARD added a comment - 05/Jul/07 07:46 AM
You can also use <excludes> on the <fileSet> to prevent it from overwriting the filtered files defined in <file>.
Anyways, I fixed MASSEMBLY-154 so, as you mentioned, this bug is obsolete. I'll close it.