[ 
https://issues.apache.org/jira/browse/MANTRUN-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MANTRUN-229.
----------------------------------
    Resolution: Incomplete

Whatever happens inside {{gzip(1)}} is out of our control. It if is broken in 
Ant, then you need to talk to the Ant devs. I see no bug in this plugin.

> exec target output has newlines converted corrupting binary information
> -----------------------------------------------------------------------
>
>                 Key: MANTRUN-229
>                 URL: https://issues.apache.org/jira/browse/MANTRUN-229
>             Project: Maven Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.8, 3.0.0
>            Reporter: Gray
>            Priority: Minor
>
> I was trying to use the gzip task but it doesn't support level so I switched 
> to using the exec task like the following:
> {noformat}
> <exec executable="gzip" output="target/classes/magic.gz">
>     <arg value="-c" />
>     <arg value="-9" />
>     <arg value="src/test/resources/magic" />
> {noformat}
> Unfortunately, this produced corrupted gzip output.  In examining at the 
> magic.gz file, I determined that any line end characters that happened to be 
> in the binary such as \r were being converted to the platform EOL.  The 
> output from that command should be binary clean IMO.
> I think I saw it with both the 3.0.0 and 1.8 versions.  It may be a failure 
> of the underlying ant target code.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to