npeltier commented on a change in pull request #11: SLING-8648 Move pipe to 
incorporate ordering of the nodes .
URL: 
https://github.com/apache/sling-org-apache-sling-pipes/pull/11#discussion_r317057501
 
 

 ##########
 File path: src/main/java/org/apache/sling/pipes/internal/MovePipe.java
 ##########
 @@ -62,24 +67,29 @@ public boolean modifiesContent() {
             String targetPath = getExpr();
             try {
                 Session session = resolver.adaptTo(Session.class);
-                if (session.itemExists(targetPath)){
+                if (orderBefore) {
+                    output = reorder(resource, targetPath, session);
+                } else if (session.itemExists(targetPath)) {
                     if (overwriteTarget && !isDryRun()) {
                         logger.debug("overwriting {}", targetPath);
 
 Review comment:
   should be info

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to