|
|
|
@ -215,7 +215,7 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi
|
|
|
|
|
WARNING_MESSAGE); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
doPaste(targetDir, pasteNodes); |
|
|
|
|
doPaste(targetDir, treeNodeList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -256,7 +256,10 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi
|
|
|
|
|
for (ExpandMutableTreeNode node : pasteNodes) { |
|
|
|
|
if (node.getUserObject() instanceof FileNode) { |
|
|
|
|
FileNode fileNode = (FileNode) node.getUserObject(); |
|
|
|
|
targetFile = FileOperationHelper.getInstance().copyFile(fileNode, targetDir); |
|
|
|
|
String newTargetFile = FileOperationHelper.getInstance().copyFile(fileNode, targetDir); |
|
|
|
|
if (TemplateResourceManager.getResource().exist(newTargetFile)) { |
|
|
|
|
targetFile = newTargetFile; |
|
|
|
|
} |
|
|
|
|
FineLoggerFactory.getLogger().debug("Template: {} paste to {} success.", fileNode.getEnvPath(), targetDir); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|