You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/05/28 04:34:05 UTC
[groovy] branch GROOVY_2_5_X updated: make test more robust
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
new 767238e make test more robust
767238e is described below
commit 767238ec34cff3cda3a9f58d0bfa69049d2c54a5
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu May 28 14:33:55 2020 +1000
make test more robust
---
src/main/java/org/codehaus/groovy/control/XStreamUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/control/XStreamUtils.java b/src/main/java/org/codehaus/groovy/control/XStreamUtils.java
index 3f7ccd3..bc78f4e 100644
--- a/src/main/java/org/codehaus/groovy/control/XStreamUtils.java
+++ b/src/main/java/org/codehaus/groovy/control/XStreamUtils.java
@@ -59,9 +59,10 @@ public abstract class XStreamUtils {
*/
private static File astFile(final String uriOrFileName) {
try {
- final String astFileName = uriOrFileName + ".xml";
+ final String astFileName = uriOrFileName.replaceAll(" ", "%20") + ".xml";
return uriOrFileName.startsWith("file:") ? new File(URI.create(astFileName)) : new File(astFileName);
} catch (IllegalArgumentException e) {
+ System.err.println("e = " + e);
return null;
}
}