mirror of https://github.com/sbt/sbt.git
Set main methods accessible no matter what
Allows to run main methods from private classes (like java -cp can)
This commit is contained in:
parent
127e73abe9
commit
84ce09ab43
|
|
@ -199,6 +199,7 @@ case class Launch(
|
|||
Helper.errPrintln(s"Error: method main not found in $mainClass0")
|
||||
sys.exit(255)
|
||||
}
|
||||
method.setAccessible(true)
|
||||
|
||||
if (options.common.verbosityLevel >= 2)
|
||||
Helper.errPrintln(s"Launching $mainClass0 ${userArgs.mkString(" ")}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue