File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/framework/src/main/java/org/elasticsearch/entitlement/bootstrap Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 25
25
import org .elasticsearch .logging .Logger ;
26
26
import org .elasticsearch .plugins .PluginDescriptor ;
27
27
28
+ import java .io .File ;
28
29
import java .io .IOException ;
29
30
import java .io .InputStream ;
30
31
import java .net .URL ;
@@ -116,7 +117,7 @@ private static TestPolicyManager createPolicyManager(PathLookup pathLookup) thro
116
117
if (classPathProperty == null ) {
117
118
classPathEntries = Set .of ();
118
119
} else {
119
- classPathEntries = Arrays .stream (classPathProperty .split (":" )).map (Path ::of ).collect (toCollection (TreeSet ::new ));
120
+ classPathEntries = Arrays .stream (classPathProperty .split (File . pathSeparator )).map (Path ::of ).collect (toCollection (TreeSet ::new ));
120
121
}
121
122
Map <String , Collection <Path >> pluginSourcePaths = pluginNames .stream ().collect (toMap (n -> n , n -> classPathEntries ));
122
123
@@ -127,7 +128,7 @@ private static TestPolicyManager createPolicyManager(PathLookup pathLookup) thro
127
128
if (testOnlyPathString == null ) {
128
129
testOnlyClassPath = Set .of ();
129
130
} else {
130
- testOnlyClassPath = Arrays .stream (testOnlyPathString .split (":" )).collect (toCollection (TreeSet ::new ));
131
+ testOnlyClassPath = Arrays .stream (testOnlyPathString .split (File . pathSeparator )).collect (toCollection (TreeSet ::new ));
131
132
}
132
133
133
134
return new TestPolicyManager (
You can’t perform that action at this time.
0 commit comments