Switch spring usages to regular dependency

This commit is contained in:
Ilya Chernikov
2017-11-15 10:31:35 +01:00
committed by Vyacheslav Gerasimov
parent d301938d23
commit 69787bd0d1
6 changed files with 32 additions and 46 deletions
@@ -159,11 +159,12 @@ object ConfigLibraryUtil {
}
}
fun addLibrary(module: Module, libraryName: String, rootPath: String, jarPaths: Array<String>) {
fun addLibrary(module: Module, libraryName: String, rootPath: String?, jarPaths: Array<String>) {
val editor = NewLibraryEditor()
editor.name = libraryName
for (jarPath in jarPaths) {
editor.addRoot(VfsUtil.getUrlForLibraryRoot(File(rootPath, jarPath)), OrderRootType.CLASSES)
val jarFile = if (rootPath == null) File(jarPath) else File(rootPath, jarPath)
editor.addRoot(VfsUtil.getUrlForLibraryRoot(jarFile), OrderRootType.CLASSES)
}
addLibrary(editor, module)