DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20870>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20870

FixCRLF changes srcdir's modification time

           Summary: FixCRLF changes srcdir's modification time
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


...even if no files have actually been changed, because they were all up to 
date. This happens because FixCRLF creates a temp file in srcdir during 
processing.

I encountered this because consequential my tar file has always been build 
instead of stating "nothing to do...", e.g:

   <!-- take care of line endings -->
    <FixCRLF
      srcdir="${build.res}"
      tab="remove"
      tablength="8"
      eol="lf">
      <patternset refid="unix.shell.scripts.patternset"/>
      <patternset includes="**/*.properties"/>
    </FixCRLF>


    <mkdir dir="${dist.dir}"/>
    <tar destfile="${dist.dir}/${dist.server.name}.tar">
      <tarfileset prefix="res" dir="${build.res}">
        <exclude name="script/**"/>
      </tarfileset>
    </tar>

However, in my case I can workaround this problem by changing the Tar 
patternset to:

        <include name="/**"/>
        <exclude name="script/**"/>

(Note the slash before the two asterisk.)

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

Reply via email to