Rewriting org.enso.runner.Main to Java (#9810)

As part of changes for #9749, let's rewrite the launcher to Java.
This commit is contained in:
Jaroslav Tulach 2024-05-02 09:36:10 +02:00 committed by GitHub
parent 5995a00958
commit 07b720a90a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1379 additions and 1305 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -238,7 +238,10 @@ object JPMSUtils {
log
)
if (!succ) {
log.error(s"Compilation of ${moduleInfo} failed")
val msg = s"Compilation of ${moduleInfo} failed"
log.error(s"javac options: $allOpts")
log.error(msg)
throw new IllegalStateException(msg)
}
}
}

View File

@ -63,7 +63,8 @@ object LibraryManifestGenerator {
projectPath.getCanonicalPath
)
log.debug(s"Running [$command].")
val commandText = command.mkString(" ")
log.debug(s"Running [$commandText].")
val exitCode = sys.process
.Process(
command,
@ -72,7 +73,7 @@ object LibraryManifestGenerator {
)
.!
if (exitCode != 0) {
val message = s"Command [$command] has failed with code $exitCode."
val message = s"Command [$commandText] has failed with code $exitCode."
log.error(message)
throw new RuntimeException(message)
}