Ensure there won't be the same classpath entries in the resulting classpath
This commit is contained in:
+3
-1
@@ -470,7 +470,9 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
|
|||||||
arguments.pluginClasspaths = pluginClassPaths.toArray(new String[pluginClassPaths.size()]);
|
arguments.pluginClasspaths = pluginClassPaths.toArray(new String[pluginClassPaths.size()]);
|
||||||
} else {
|
} else {
|
||||||
for (String path : pluginClassPaths) {
|
for (String path : pluginClassPaths) {
|
||||||
arguments.pluginClasspaths = ArrayUtil.append(arguments.pluginClasspaths, path);
|
if (ArrayUtil.indexOf(arguments.pluginClasspaths, path) < 0) {
|
||||||
|
arguments.pluginClasspaths = ArrayUtil.append(arguments.pluginClasspaths, path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user