Gray created MANTRUN-229:
----------------------------

             Summary: 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: 3.0.0, 1.8
            Reporter: Gray


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 looking at the magic 
file, I determined that any line end character such as \r was being converted.  
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.3.4#803005)

Reply via email to