[ http://jira.codehaus.org/browse/MPDIST-9?page=all ]
Lukas Theussl closed MPDIST-9:
------------------------------
Resolution: Won't Fix
Fix Version: (was: 1.7)
> Add "fixcrlf" step
> ------------------
>
> Key: MPDIST-9
> URL: http://jira.codehaus.org/browse/MPDIST-9
> Project: maven-dist-plugin
> Type: New Feature
> Environment: Any
> Reporter: Dmytro Mykhaylov
> Assignee: Lukas Theussl
> Priority: Minor
>
>
> 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>
--
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