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 25181] New: - SYMLINK task creates cyclic symlinks
Date Wed, 03 Dec 2003 20:56: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=25181>.
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=25181

SYMLINK task creates cyclic symlinks

           Summary: SYMLINK task creates cyclic symlinks
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: ross@saafe.org


<symlink link="${project.webapp}/skins/${project.skin}"
      resource="${project.home}/${project.skins-dir}/${project.skin}"
      failonerror="false"/>

Works fine on first pass (i.e. when the link does not already exist), however on
a second pass (i.e. when the link does exist) the result is a link inside the
original directory. That is suppose that:

${project.webapp}/skins/${project.skin} = a/skins/b
${project.home}/${project.skins-dir}/${project.skin} = x/y/b

The first pass gives:

a/skins/b --> x/y/b

but the second pass results in a second link in x/y/b as follows:

b --> x/y/b

----------------

A workaround is available for those experienceing this problem:

    <symlink link="${project.webapp}/skins/${project.skin}"
      action="delete"
      failonerror="false"/>
    <symlink link="${project.webapp}/skins/${project.skin}"
      resource="${project.home}/${project.skins-dir}/${project.skin}"
      failonerror="false"/>

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


Mime
View raw message