Cleanup in compiler modules
This commit is contained in:
@@ -41,7 +41,7 @@ public object Main {
|
||||
classpath.add(".")
|
||||
|
||||
var i = 0
|
||||
while (i < args.size()) {
|
||||
while (i < args.size) {
|
||||
val arg = args[i]
|
||||
if (collectingArguments) {
|
||||
arguments.add(arg)
|
||||
@@ -50,7 +50,7 @@ public object Main {
|
||||
}
|
||||
|
||||
fun next(): String {
|
||||
if (++i == args.size()) {
|
||||
if (++i == args.size) {
|
||||
throw RunnerException("argument expected to $arg")
|
||||
}
|
||||
return args[i]
|
||||
@@ -105,7 +105,7 @@ public object Main {
|
||||
run(args)
|
||||
}
|
||||
catch (e: RunnerException) {
|
||||
System.err.println("error: " + e.getMessage())
|
||||
System.err.println("error: " + e.message)
|
||||
System.exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ class JarRunner(private val path: String) : AbstractRunner() {
|
||||
}
|
||||
}
|
||||
catch (e: IOException) {
|
||||
throw RunnerException("could not read manifest from " + path + ": " + e.getMessage())
|
||||
throw RunnerException("could not read manifest from " + path + ": " + e.message)
|
||||
}
|
||||
?: throw RunnerException("no Main-Class entry found in manifest in $path")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user