Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPDIST-9

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPDIST-9
    Summary: Add "fixcrlf" step
       Type: New Feature

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-dist-plugin

   Assignee: Jason van Zyl
   Reporter: Dmytro Mykhaylov

    Created: Fri, 23 Apr 2004 7:37 AM
    Updated: Fri, 23 Apr 2004 7:37 AM
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>



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to