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=25674>.
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=25674

delete with followSymlinks=false fails if pointed at non-existant directory

           Summary: delete with followSymlinks=false fails if pointed at
                    non-existant directory
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


While trying to write a failing test case reflecting bug 25181 I stumbled on to
this behavior. 

This works when ${tdir} doesn't exist
  <target name="setup">
      <delete dir="${tdir}"/>
      <mkdir dir="${tdir}"/>
  </target>

This doesn't work when ${tdir} doesn't exist
  <target name="setup">
      <delete dir="${tdir}" followSymlinks="false"/>
      <mkdir dir="${tdir}"/>
  </target>

In the latter case I get:

    [junit] Testcase: testSingle took 0.141 sec
    [junit]     Caused an ERROR
    [junit]
/home/gus/projects/ant/src/etc/testcases/taskdefs/optional/unix/test-working not
found.
    [junit]
/home/gus/projects/ant/src/etc/testcases/taskdefs/optional/unix/symlink.xml:36:
/home/gus/projects/ant/src/etc/testcases/taskdefs/optional/unix/test-working not
found.
    [junit]     at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:387)
    [junit]     at
org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:231)
    [junit]     at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:555)
    [junit]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:401)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:338)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:365)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
    [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:269)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.unix.SymlinkTest.setUp(SymlinkTest.java:97)
    [junit]     at junit.framework.TestCase.runBare(TestCase.java:125)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:118)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:208)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:203)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:326)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1004)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:676)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:650)
    [junit]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:401)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:338)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:365)
    [junit]     at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
    [junit]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1094)
    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:705)
    [junit]     at org.apache.tools.ant.Main.startAnt(Main.java:225)
    [junit]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
    [junit]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

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

Reply via email to