I want to copy a source node over a destination node that already exists.
If I just do
    workspace.copy(sourcePath, targetPath);
I get an ItemExistsException.
I was hoping to  create a new version by
   VersionManager vm = workspace.getVersionManager();
   vm.checkout(targetPath);
   workspace.copy(sourcePath, targetPath);
   vm.checkin(targetPath);
but still I get a ItemExistsException.

What is the right way to do this?


Harold Putman

Reply via email to