[
https://issues.apache.org/jira/browse/MANTRUN-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gray updated MANTRUN-229:
-------------------------
Description:
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.
was:
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.
> 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.3.4#803005)