in tc-sbt-runner-agent/src/main/java/jetbrains/buildServer/sbt/SbtRunnerBuildService.java [233:242]
private String getMainClassName() throws RunBuildException {
try {
File sbtLauncher = getSbtLauncher();
getLogger().message("SBT main class name will be retrieved from: " + sbtLauncher);
JarFile jf = new JarFile(sbtLauncher);
return jf.getManifest().getMainAttributes().getValue("Main-Class");
} catch (IOException e) {
throw new RunBuildException("An error occurred during reading manifest in SBT launcher", e);
}
}