ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20870] New: - FixCRLF changes srcdir's modification time
Date Wed, 18 Jun 2003 14:13:26 GMT
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: dev@ant.apache.org
        ReportedBy: jonas.kilian@dresdner-bank.com


...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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message