mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] recognizes '--add-modules <module>' option format (IDEA-181150)
This commit is contained in:
@@ -149,12 +149,11 @@ class JavaPlatformModuleSystem : JavaModuleSystemEx {
|
||||
else {
|
||||
var useValue = false
|
||||
options.asSequence()
|
||||
.filter { it.startsWith(name) }
|
||||
.map {
|
||||
when {
|
||||
it.length == name.length -> { useValue = true; "" }
|
||||
it == name -> { useValue = true; "" }
|
||||
useValue -> { useValue = false; it }
|
||||
it[name.length] == '=' -> it.substring(name.length + 1)
|
||||
it.startsWith(name) && it[name.length] == '=' -> it.substring(name.length + 1)
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user