jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Distribution Plugin
  • MPDIST-9

Add "fixcrlf" step

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Any

Description

It would be good to have the following:

1. FIXCRLF distribution directory before creating zip using 1st rule-set (windows)

2. then ZIP

3. FIXCRLF distribution directory before creating tar.gz using 2nd rule set (unix)

4. then TAR.GZ

Thank you.

Below you can find my temporal workaround for FIXCRLF:

<goal name="dist:build-bin"
prereqs="dist:build-setup, dist:prepare-bin-filesystem"
description="Build the binary distribution.">

<!-- fix CR/LF for unix dist -->
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" eof="remove">
<patternset refid="fixcrlf.patternset"/>
<patternset refid="fixcrlf.unix.patternset"/>
</ant:fixcrlf>
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="crlf" eof="remove">
<patternset refid="fixcrlf.win.patternset"/>
</ant:fixcrlf>

<!-- Create a tar.gz file -->
<ant:tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}.tar">
<ant:tarfileset dir="${maven.dist.bin.archive.dir}"/>
</ant:tar>

<ant:gzip
zipfile="${maven.dist.dir}/${maven.final.name}.tar.gz"
src="${maven.dist.dir}/${maven.final.name}.tar"
/>

<ant:delete file="${maven.dist.dir}/${maven.final.name}.tar"/>

<!-- fix CR/LF for win dist -->
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" eof="remove">
<patternset refid="fixcrlf.unix.patternset"/>
</ant:fixcrlf>
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="crlf" eof="remove">
<patternset refid="fixcrlf.patternset"/>
<patternset refid="fixcrlf.win.patternset"/>
</ant:fixcrlf>

<!-- Create a zip file -->
<ant:zip zipfile="${maven.dist.dir}/${maven.final.name}.zip">
<ant:zipfileset dir="${maven.dist.bin.archive.dir}"/>
</ant:zip>
</goal>

Issue Links

is superceded by

Improvement - An improvement or enhancement to an existing feature or task. MPDIST-28 Allow to configure to which files should use CRLF line endings in Zip archives

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Dmytro Mykhaylov
Vote (0)
Watch (0)

Dates

  • Created:
    23/Apr/04 7:37 AM
    Updated:
    01/May/06 6:26 PM
    Resolved:
    01/May/06 6:26 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.