[ 
http://jira.codehaus.org/browse/MASSEMBLY-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144960#action_144960
 ] 

gotama commented on MASSEMBLY-285:
----------------------------------


I found this bug while trying to merge 2 <fileset> directories expecting that 
the 2nd would overwrite the first set of files where they overlap (in using one 
fileset as "default" files and the 2nd fileset as overrides).

The result was as described in the bug - 2 identical files added to the 
resulting zip file. Upon extraction of the zip, I was prompted for an option to 
override one of the files. I also verified that the case on both files was 
lower case, so its NOT an issue with the same filename with different case; ie 
creating the archive on unix and extracting on Windows. 

This bug has been open for a long time. It would be appreciated if this was 
fixed ASAP. Its a huge blocker. Thanks!

example assembly.xml file:

<assembly xmlns="http://maven.apache.org/POM/4.0.0";
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd";>

    <id>bin</id>

    <formats>
        <format>zip</format>
    </formats>
    
    <fileSets>
        <fileSet>
            <!--must use absolute reference with ${pom.basedir} to achieve 
filtering -->
            <directory>${pom.basedir}/src/main/config/defaults/</directory>
            <outputDirectory>${pom.basedir}/target/work/</outputDirectory>      
      
            <filtered>true</filtered>
        </fileSet>
        <fileSet>
            <!-- must use absolute reference with ${pom.basedir} to achieve 
filtering -->
            <directory>${pom.basedir}/src/main/config/overrides/</directory>
            <outputDirectory>${pom.basedir}/target/work/</outputDirectory>
            <filtered>true</filtered>
        </fileSet>
    </fileSets>

</assembly>


> regression: duplicate files added to the assembly
> -------------------------------------------------
>
>                 Key: MASSEMBLY-285
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-285
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>            Reporter: Brett Porter
>            Priority: Blocker
>             Fix For: 2.2-beta-3
>
>
> I found that it was possible to add a file twice to the assembly through 
> different filesets (a zip file) so that when it extracted it prompted for 
> overwrite.
> It should error out or collapse the entries (as 2.1 did).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to