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 15031] New: - ANT <copy> with <fileset> does not spot bad symlinks
Date Tue, 03 Dec 2002 18:39:29 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=15031>.
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=15031

ANT <copy> with <fileset> does not spot bad symlinks

           Summary: ANT <copy> with <fileset> does not spot bad symlinks
           Product: Ant
           Version: 1.5
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: john.lonergan@ubsw.com


BELOW IS AN ANT CFG FILE THAT DESCRIBES THE PROBLEM

<!--
Ant 1.5 has a bug/limitation that can mask problems during make.
The <copy> operation does not spot or report files that are bad symlinks
it just ignores them.


to set up test case ....
>mkdir /tmp/src_with_some_bad_links
>cd /tmp/src_with_some_bad_links

>cat hello > realfile
>ln -s realfile goodlink
>ln -s nonexistantfile badlink

copy this file to /tmp and then run ant ...
>ant -buildfile /tmp/bad.xml

/tmp/target ends up with ...
  goodfile
  realfile

There is no mention of the fact that there is a bad symlink.
Ant does not report it and it does not return any indication there was a 
problem.

If however I use an explicit file name 
(eg <copy file="/tmp/src_with_some_bad_links/badlink" todir="/tmp/target"/>) 
then I do get an error (a nasty java error)

But this is not what I want to do - nor is it the sort of error message I 
expect (cos it looks like ant has dumped its pants).

-->




<project name="AntBug" default="default" basedir=".">

    <target name="default">

        <copy todir="/tmp/target">
            <fileset dir="/tmp/src_with_some_bad_links"/>
        </copy>

    </target>

</project>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message