incubator-groovy git commit: Restore full file name for XML export

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

incubator-groovy git commit: Restore full file name for XML export

cchampeau
Repository: incubator-groovy
Updated Branches:
  refs/heads/master 058dd40f0 -> 167ac6e94


Restore full file name for XML export


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/167ac6e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/167ac6e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/167ac6e9

Branch: refs/heads/master
Commit: 167ac6e944a583e19ff5d04ce676b745ded132e5
Parents: 058dd40
Author: Cedric Champeau <[hidden email]>
Authored: Fri Jun 12 17:44:53 2015 +0200
Committer: Cedric Champeau <[hidden email]>
Committed: Fri Jun 12 17:44:53 2015 +0200

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/167ac6e9/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java b/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
index 6359f9c..c3d2da7 100644
--- a/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
+++ b/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
@@ -273,7 +273,7 @@ public class AntlrParserPlugin extends ASTHelper implements ParserPlugin, Groovy
     }
 
     private void saveAsXML(String name, AST ast) {
-        XStreamUtils.serialize(name, ast);
+        XStreamUtils.serialize(name+".antlr", ast);
     }
 
     public ModuleNode buildAST(SourceUnit sourceUnit, ClassLoader classLoader, Reduction cst) throws ParserException {