public static List<URL> compilerOutputPathsFor(final Module module) { final CompilerModuleExtension compilerModule = CompilerModuleExtension.getInstance(module); if (compilerModule != null) { return pathsOf(compilerModule.getOutputRoots(true)); } return emptyList(); }
CompilerModuleExtension compilerModuleExtension() { return CompilerModuleExtension.getInstance(module); }
@CheckForNull private static VirtualFile getCompilerOutputPath(final Module module) { final CompilerModuleExtension compilerModuleExtension = CompilerModuleExtension.getInstance(module); if (compilerModuleExtension != null) { VirtualFile file = compilerModuleExtension.getCompilerOutputPath(); // see SLI-107 if (exists(file)) { return file; } } return null; }
@CheckForNull private static VirtualFile getCompilerTestOutputPath(final Module module) { final CompilerModuleExtension compilerModuleExtension = CompilerModuleExtension.getInstance(module); if (compilerModuleExtension != null) { VirtualFile file = compilerModuleExtension.getCompilerOutputPathForTests(); if (exists(file)) { return file; } } return null; }
public void configureByModule(final Module module, @MagicConstant(valuesFromClass = MonkeyParameters.class) final int classPathType, boolean forTests) throws CantRunException { CompilerModuleExtension extension = CompilerModuleExtension.getInstance(module); if (extension != null) { outputPath = forTests ? extension.getCompilerOutputPathForTests() : extension.getCompilerOutputPath(); } final Sdk moduleSdk = getModuleSdk(module); if ((classPathType & SDK_ONLY) != 0) { if (moduleSdk == null) { throw CantRunException.noJdkConfigured(); } setSdk(moduleSdk); } }