private static String getOutputDir(final Module module) { return ModuleRootManager.getInstance(module) .getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); }
private void updateOutputPathPresentation() { if (getCompilerExtension().isCompilerOutputPathInherited()) { final String baseUrl = ProjectStructureConfigurable.getInstance(myProject).getProjectConfig().getCompilerOutputUrl(); moduleCompileOutputChanged(baseUrl, getModel().getModule().getName()); } else { final VirtualFile compilerOutputPath = getCompilerExtension().getCompilerOutputPath(); if (compilerOutputPath != null) { myOutputPathPanel.setText(FileUtil.toSystemDependentName(compilerOutputPath.getPath())); } else { final String compilerOutputUrl = getCompilerExtension().getCompilerOutputUrl(); if (compilerOutputUrl != null) { myOutputPathPanel.setText(FileUtil.toSystemDependentName(VfsUtilCore.urlToPath(compilerOutputUrl))); } } final VirtualFile testsOutputPath = getCompilerExtension().getCompilerOutputPathForTests(); if (testsOutputPath != null) { myTestsOutputPathPanel.setText(FileUtil.toSystemDependentName(testsOutputPath.getPath())); } else { final String testsOutputUrl = getCompilerExtension().getCompilerOutputUrlForTests(); if (testsOutputUrl != null) { myTestsOutputPathPanel.setText(FileUtil.toSystemDependentName(VfsUtilCore.urlToPath(testsOutputUrl))); } } } }
private String getOutputDir(final Module module) { return ModuleRootManager.getInstance(module).getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); }
public String getExecutablePath() { final Module module = getConfigurationModule().getModule(); if (module != null) { final ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(module); final String outputPath = moduleRootManager.getModuleExtension(CompilerModuleExtension.class).getCompilerOutputUrl(); String filename = module.getName(); if (SystemInfo.isWindows) { filename += ".exe"; } final File outputFile = new File(VfsUtilCore.urlToPath(outputPath), filename); return outputFile.getPath(); } else { return ""; } }