Change File.separator to File.pathSeparator

This commit is contained in:
Will Faught 2016-05-27 11:26:38 -07:00
parent 7e8fb7a7f3
commit a0314a8946
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ public abstract class BaseTest {
String gopath = builder.environment().get("GOPATH");
String path = runtimePath + File.pathSeparator + tmpdir;
if (gopath != null && gopath.length() > 0) {
path = gopath + File.separator + path;
path = gopath + File.pathSeparator + path;
}
builder.environment().put("GOPATH", path);
builder.directory(new File(tmpdir));