Hi all,

I'm new to TinkerPop and hope that this is the correct place to share.

When calling `TestSupport:::generateTempFile`, the code goes to
`TestSupport.java:L122`:

```
final String clsUri = clazz.getName().replace(".", "/") + ".class";
final URL url = clazz.getClassLoader().getResource(clsUri);
final String clsPath = url.getPath();
final String computePath = clsPath.substring(0, clsPath.length() -
clsUri.length());
```

on Windows the `clsPath` is something like:

`file:/C:/Users/user/.m2/repository/org/apache/tinkerpop/gremlin-test/3.5.4-SNAPSHOT/gremlin-test-3.5.4-SNAPSHOT.jar!/org/apache/tinkerpop/gremlin/process/traversal/step/map/WriteTest.class`

and it then failed on `File.createTempFile(fileName, fileNameSuffix, path)` with

`java.io.IOException: The filename, directory name, or volume label
syntax is incorrect`

In Linux this works fine as `clsPath` is resolved to:

`file:/home/user/.m2/repository/org/apache/tinkerpop/gremlin-test/3.5.4-SNAPSHOT/gremlin-test-3.5.4-SNAPSHOT.jar!/org/apache/tinkerpop/gremlin/process/traversal/step/map/WriteTest.class`

It's great to test on Windows so I'm wondering if there could be a fix
for this? Thanks in advance!

Jiading Guo

Reply via email to