mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[stream-debugger] Use PathUtil.getLocalPath
GitOrigin-RevId: ca73d640969460f7438b15fb854280b1df18d836
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0dfdda55c0
commit
01cd6a25e7
+2
-4
@@ -10,7 +10,7 @@ import com.intellij.openapi.util.SystemInfo
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import com.intellij.testFramework.fixtures.MavenDependencyUtil
|
||||
import junit.framework.TestCase
|
||||
import com.intellij.util.PathUtil
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
@@ -32,9 +32,7 @@ abstract class LibraryTraceExecutionTestCase(private val coordinates: String) :
|
||||
ModuleRootModificationUtil.updateModel(myModule) { model ->
|
||||
MavenDependencyUtil.addFromMaven(model, coordinates)
|
||||
val libraryJar = model.moduleLibraryTable.getLibraryByName(coordinates)!!.rootProvider.getFiles(OrderRootType.CLASSES)[0]
|
||||
val jarPathWithSuffix = libraryJar.path
|
||||
TestCase.assertTrue(jarPathWithSuffix.endsWith("!/"))
|
||||
jarPath = jarPathWithSuffix.substring(0, jarPathWithSuffix.length - "!/".length)
|
||||
jarPath = PathUtil.getLocalPath(libraryJar)!!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user