|
|
@ -215,7 +215,7 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi |
|
|
|
WARNING_MESSAGE); |
|
|
|
WARNING_MESSAGE); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
doPaste(targetDir, pasteNodes); |
|
|
|
doPaste(targetDir, treeNodeList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -256,7 +256,10 @@ public class DefaultTemplateTreeDefineProcessor extends AbstractTemplateTreeDefi |
|
|
|
for (ExpandMutableTreeNode node : pasteNodes) { |
|
|
|
for (ExpandMutableTreeNode node : pasteNodes) { |
|
|
|
if (node.getUserObject() instanceof FileNode) { |
|
|
|
if (node.getUserObject() instanceof FileNode) { |
|
|
|
FileNode fileNode = (FileNode) node.getUserObject(); |
|
|
|
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); |
|
|
|
FineLoggerFactory.getLogger().debug("Template: {} paste to {} success.", fileNode.getEnvPath(), targetDir); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|