Skip to content

Commit d5d73cd

Browse files
committed
This is a simpler version to convert a file collection to a path.
1 parent a504a46 commit d5d73cd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

solr/benchmark/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,10 @@ jmhReport {
3939

4040
task echoCp {
4141
doLast {
42-
print toPath((sourceSets.main.runtimeClasspath + sourceSets.main.resources).files)
42+
logger.lifecycle((sourceSets.main.runtimeClasspath + sourceSets.main.resources).asPath)
4343
}
4444
}
4545

46-
private static String toPath(Set<File> classpathUnderTest) {
47-
StringBuilder sb = new StringBuilder();
48-
for (File entry : classpathUnderTest) {
49-
sb.append(entry.getAbsolutePath());
50-
sb.append(File.pathSeparatorChar);
51-
}
52-
return sb.toString();
53-
}
54-
5546
dependencies {
5647
implementation project(':solr:test-framework')
5748

0 commit comments

Comments
 (0)