Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Pipes 1.1.0
-
None
Description
I worked with npeltier to define a pipe to perform content migration, see below for an example of this pipe:
def plumber = getService("org.apache.sling.pipes.Plumber"); plumber.newPipe(resourceResolver) .echo('/content/foo/bar').name('startPath') .mv('${path.startPath.replace("/bar", "/xyz")}') .parent().name('parentContent') .mkdir('${path.parentContent}/bar').with('nodeType', 'nt:unstructured').name('targetResource') .write('sling:resourceType', 'test/components/somecomponent') .echo('${path.parentContent}/xyz') .mv('${path.targetResource}/xyz') .runWith("dryRun", "true");
However, the dryRun argument is not taken into account, the changes are actually persisted in the repository.