Andrew McIntyre wrote:
Try deleting your out directory completely and then running the
html.ref target again.

Hi Andrew, thanks for the suggestions. Unfortunately, it didn't help.

I ran "ant -verbose html.ref" and captured the output, and the last
page or two is pasted below.

I guess I'm not quite sure what Ant is trying to do here. It seems
to have decided to copy each of the files from the old directory ("reftemp")
to the new directory ("ref"), and it succeeds at doing that, but then
it tries to rename the directory "reftemp" to be the directory "ref", and
of course that fails because the directory "ref" already exists at this
point.

I think that Ant should have either
 - simply renamed the directory, without copying its contents from the old
   directory name to the new directory name, or
 - copied all the contents, but then simply deleted the old directory at the
   end, no need to rename the directory because all the contents have been
   copied to the new directory.

Is any of this making sense? I guess I should go read the DITA build.xml files.

thanks,

bryan

[move] Attempting to rename: /home2/bpendleton/src/derby/docs/trunk/out/reftemp/refconrefs.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/refconrefs.html [move] Copying /home2/bpendleton/src/derby/docs/trunk/out/reftemp/refconrefs.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/refconrefs.html [move] Attempting to rename: /home2/bpendleton/src/derby/docs/trunk/out/reftemp/crefjavccns.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/crefjavccns.html [move] Copying /home2/bpendleton/src/derby/docs/trunk/out/reftemp/crefjavccns.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/crefjavccns.html [move] Attempting to rename: /home2/bpendleton/src/derby/docs/trunk/out/reftemp/rrefcallprocedure.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/rrefcallprocedure.html [move] Copying /home2/bpendleton/src/derby/docs/trunk/out/reftemp/rrefcallprocedure.html to /home2/bpendleton/src/derby/docs/trunk/out/ref/rrefcallprocedure.html [move] Attempting to rename dir: /home2/bpendleton/src/derby/docs/trunk/out/reftemp to /home2/bpendleton/src/derby/docs/trunk/out/ref
  [antcall] Exiting /home2/bpendleton/src/derby/docs/trunk/build.xml.

BUILD FAILED
/home2/bpendleton/src/derby/docs/trunk/build.xml:106: The following error occurred while executing this line: /home2/bpendleton/src/derby/docs/trunk/build.xml:151: Cannot replace directory /home2/bpendleton/src/derby/docs/trunk/out/ref with directory /home2/bpendleton/src/derby/docs/trunk/out/reftemp
        at 
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: /home2/bpendleton/src/derby/docs/trunk/build.xml:151: Cannot replace directory /home2/bpendleton/src/derby/docs/trunk/out/ref with directory /home2/bpendleton/src/derby/docs/trunk/out/reftemp
        at org.apache.tools.ant.taskdefs.Move.renameFile(Move.java:386)
        at org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:133)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
        at org.apache.tools.ant.taskdefs.Move.execute(Move.java:111)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        ... 13 more
--- Nested Exception ---
/home2/bpendleton/src/derby/docs/trunk/build.xml:151: Cannot replace directory /home2/bpendleton/src/derby/docs/trunk/out/ref with directory /home2/bpendleton/src/derby/docs/trunk/out/reftemp
        at org.apache.tools.ant.taskdefs.Move.renameFile(Move.java:386)
        at org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:133)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
        at org.apache.tools.ant.taskdefs.Move.execute(Move.java:111)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 6 minutes 46 seconds

Reply via email to