jps2bazel: better error diagnostics

GitOrigin-RevId: 433ee6ec31869dfb78963464e88605b9107f313f
This commit is contained in:
Leonid Shalupov
2025-06-11 16:24:09 +00:00
committed by intellij-monorepo-bot
parent cfe4bc15d7
commit ee1a22a61f
@@ -252,11 +252,11 @@ internal fun generateDeps(
private fun getFileMavenFileDescription(lib: JpsTypedLibrary<JpsSimpleElement<JpsMavenRepositoryLibraryDescriptor>>, jar: Path): MavenFileDescription {
require(jar.isAbsolute) {
"jar path must be absolute: $jar"
"jar path for jps library ${lib.name} must be absolute: $jar"
}
require(jar == jar.normalize()) {
"jar path must not contain redundant . and .. segments: $jar"
"jar path for jps library ${lib.name} must not contain redundant . and .. segments: $jar"
}
val libraryDescriptor = lib.properties.data