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

Dave Hallam commented on MASSEMBLY-412:
---------------------------------------

Hi Scott,

I've just tried to comment on this issue but it appeared not to be stored so 
this is the second time!!

I came across your issue when I encountered the same problem where it corrupted 
a zip and a class file.

I solved it by changing the distribution.xml file.  It used to be:

{noformat}
        <fileSet>
            <directory>config</directory>
            <lineEnding>unix</lineEnding>
            <fileMode>0744</fileMode>
            <includes>
                <include>**</include>
            </includes>
            <outputDirectory>/myapp/config</outputDirectory>
        </fileSet>
{noformat}

The problem seems to be that the lineEnding tag searches for an EOL sequence 
and, if your binary contains that sequence, it's replaces with whatever you 
have asked for - thus corrupting the file.  Solution, remove the lineEnding 
config line, or split the fileSet into two fileSets - one for text and the 
other for binary files.

Hope that helps.

Dave


> Assembly corrupts images when placing them in ZIP file
> ------------------------------------------------------
>
>                 Key: MASSEMBLY-412
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-412
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-3
>            Reporter: Scott Battaglia
>         Attachments: bad_ja-sig-logo.gif, ja-sig-logo.gif
>
>
> I've noticed this with previous versions of the plugin (i.e. Beta 1), but I'm 
> still seeing it with Beta 3.  When I build my assembly, some of the images in 
> the webapp module are being corrupted.  I'll attach the image (note, that in 
> the included .WAR file the images are fine).  The bad one is prefixed with 
> bad.
> You can try this yourself.  Our code is publicly available at:
> https://www.ja-sig.org/svn/cas3/trunk
> Thanks
> Scott

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