fix a typo in the resulting file.
authorBruno Sinou <bsinou@argeo.org>
Sat, 5 Jul 2014 06:42:34 +0000 (06:42 +0000)
committerBruno Sinou <bsinou@argeo.org>
Sat, 5 Jul 2014 06:42:34 +0000 (06:42 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@7129 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

server/plugins/org.argeo.jcr.ui.explorer/src/main/java/org/argeo/jcr/ui/explorer/commands/DumpNode.java

index 5bc261ea7b9b99726ae82a0f0f2b1dc3d2cee162..c8a235d73f2ca5d9509a2564184484bd3e6a4192 100644 (file)
@@ -31,6 +31,7 @@ import javax.jcr.RepositoryException;
 import org.argeo.ArgeoException;
 import org.argeo.eclipse.ui.specific.OpenFile;
 import org.argeo.eclipse.ui.utils.CommandUtils;
+import org.argeo.jcr.JcrUtils;
 import org.argeo.jcr.ui.explorer.JcrExplorerPlugin;
 import org.argeo.jcr.ui.explorer.model.SingleJcrNodeElem;
 import org.eclipse.core.commands.AbstractHandler;
@@ -86,7 +87,7 @@ public class DumpNode extends AbstractHandler {
                                        node.getSession().exportSystemView(node.getPath(), fos,
                                                        true, false);
                                        openGeneratedFile(tmpFile.getAbsolutePath(),
-                                                       "Dump-" + node.getName() + dateVal + ".xml");
+                                                       "Dump-" + JcrUtils.replaceInvalidChars(node.getName())+ "-" + dateVal + ".xml");
                                } catch (RepositoryException e) {
                                        throw new ArgeoException(
                                                        "Unable to perform SystemExport on " + node, e);