(String... args)
| 42 | private static final Logger logger = LogManager.getLogger(Main.class); |
| 43 | |
| 44 | public static void main(String... args) { |
| 45 | Timer.runAndCount(() -> { |
| 46 | Options options = processArgs(args); |
| 47 | try { |
| 48 | options.setClasspathKeywords(Config.classpathKeywords); |
| 49 | options.setAppClassPath(JarUtil.collectAppClassPath()); |
| 50 | options.setClassPath(JarUtil.collectClassPath()); |
| 51 | } catch (Exception e) { |
| 52 | throw new RuntimeException(e); |
| 53 | } |
| 54 | LoggerConfigs.setOutput(options.getOutputDir()); |
| 55 | Plan plan = processConfigs(options); |
| 56 | if (plan.analyses().isEmpty()) { |
| 57 | logger.info("No analyses are specified"); |
| 58 | System.exit(0); |
| 59 | } |
| 60 | buildWorld(options, plan.analyses()); |
| 61 | executePlan(plan); |
| 62 | LoggerConfigs.reconfigure(); |
| 63 | }, "Tai-e"); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * If the given options is empty or specify to print help information, |
no test coverage detected