mirror of
https://github.com/enso-org/enso.git
synced 2024-09-11 13:15:52 +03:00
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:
parent
5995a00958
commit
07b720a90a
1372
engine/runner/src/main/java/org/enso/runner/Main.java
Normal file
1372
engine/runner/src/main/java/org/enso/runner/Main.java
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user