mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
[Java] Implement basic migration for java command through new terminal api
IDEA-359243 GitOrigin-RevId: 149b00551782ffb67c65844b9969cb1e3fe978cc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ecb477656c
commit
dc4d2081c0
@@ -1,2 +1,12 @@
|
||||
java.command.terminal.description=Runs java
|
||||
java.command.terminal.help.option.description=Prints help message
|
||||
java.command.terminal.help.option.description=Print help message
|
||||
java.command.terminal.jar.option.description=Launch the main class in a JAR file
|
||||
java.command.terminal.jar.option.argument.jar.file.text=jar file
|
||||
java.command.terminal.D.option.description=Set system property
|
||||
java.command.terminal.D.option.argument.key.text=<name>=<value>
|
||||
java.command.terminal.version.option.description=Print the product version to the error stream and exit
|
||||
java.command.terminal.classpath.option.description=Class search path of directories and zip/jar files
|
||||
java.command.terminal.classpath.option.argument.path.text=filepath:[filepath]
|
||||
java.command.terminal.show.version.option.description=Print the product version to the output stream and continue
|
||||
java.command.terminal.dry.run.option.description=Create VM and load the main class but do not execute the main method
|
||||
java.command.terminal.argument.main.class.text=mainclass
|
||||
@@ -13,9 +13,42 @@ class JavaShellCommandSpecsProvider : ShellCommandSpecsProvider {
|
||||
}
|
||||
}
|
||||
|
||||
private fun getSpecs() : ShellCommandSpec = ShellCommandSpec("java") {
|
||||
private fun getSpecs(): ShellCommandSpec = ShellCommandSpec("java") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.description"))
|
||||
option("--help", "-help", "-h") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.help.option.description"))
|
||||
}
|
||||
option("-jar") {
|
||||
argument {
|
||||
displayName(JavaTerminalBundle.message("java.command.terminal.jar.option.argument.jar.file.text"))
|
||||
}
|
||||
description(JavaTerminalBundle.message("java.command.terminal.jar.option.description"))
|
||||
}
|
||||
option("-D") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.D.option.description"))
|
||||
repeatTimes = 0
|
||||
separator = ""
|
||||
argument {
|
||||
displayName(JavaTerminalBundle.message("java.command.terminal.D.option.argument.key.text"))
|
||||
}
|
||||
}
|
||||
option("--version", "-version") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.version.option.description"))
|
||||
}
|
||||
option("-classpath", "-cp") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.classpath.option.description"))
|
||||
argument {
|
||||
displayName(JavaTerminalBundle.message("java.command.terminal.classpath.option.argument.path.text"))
|
||||
}
|
||||
}
|
||||
option("-showversion", "--show-version") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.show.version.option.description"))
|
||||
}
|
||||
option("--dry-run") {
|
||||
description(JavaTerminalBundle.message("java.command.terminal.dry.run.option.description"))
|
||||
}
|
||||
|
||||
argument {
|
||||
displayName(JavaTerminalBundle.message("java.command.terminal.argument.main.class.text"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user