/** * Gets the report directory for a given project. * * @param pom * the project definition * @return the report directory */ public File getReportsDirectory(Project project) { return project.getFileSystem().getBuildDir(); }
private static File getReportsDirectoryFromDefaultConfiguration(Project project) { return new File(project.getFileSystem().getBuildDir(), "surefire-reports"); }
private static File getReportsDirectoryFromDefaultConfiguration(Project project) { return new File(project.getFileSystem().getBuildDir(), "surefire-reports"); }
/** * Gets the coverage report file. * * @return the coverage report file */ public File getCoverageReportFile() { Configuration configuration = getProject().getConfiguration(); return new File(getProject().getFileSystem().getBuildDir(), new StringBuilder().append(getReportFileRelativePath()) .append(File.separator) .append(configuration.getString(PHPUNIT_COVERAGE_REPORT_FILE_PROPERTY_KEY, PHPUNIT_DEFAULT_COVERAGE_REPORT_FILE)).toString()); }
/** * Gets the report file. * * <pre> * The path is construct as followed : * {PORJECT_BUILD_DIR}\{CONFIG_RELATIVE_REPORT_FILE}\{CONFIG_REPORT_FILE_NAME} * </pre> * * @return the report file */ public File getReportFile() { StringBuilder fileName = new StringBuilder(reportFileRelativePath).append(File.separator); fileName.append(reportFileName); File reportFile = new File(getProject().getFileSystem().getBuildDir(), fileName.toString()); LOG.info("Report file for: " + getCommandLine() + " : " + reportFile); return reportFile; }
/** * @return the created working directory. */ public File createWorkingDirectory() { File target = getProject().getFileSystem().getBuildDir(); File logs = new File(target, getReportFileRelativePath()); synchronized (this) { logs.mkdirs(); } return logs; }
/** * @param project */ protected AbstractPhpPluginConfiguration(Project project) { this.project = project; Configuration configuration = getProject().getConfiguration(); if (getReportFileNameKey() != null) { this.reportFileName = configuration.getString(getReportFileNameKey(), getDefaultReportFileName()); } if (getReportFileRelativePathKey() != null) { this.reportFileRelativePath = configuration.getString(getReportFileRelativePathKey(), getDefaultReportFilePath()); String absolutePath = getProject().getFileSystem().getBuildDir().getAbsolutePath(); File reportDirectory = new File(absolutePath, reportFileRelativePath); reportDirectory.mkdir(); } if (getArgumentLineKey() != null) { this.argumentLine = configuration.getString(getArgumentLineKey(), getDefaultArgumentLine()); } if (getShouldAnalyzeOnlyKey() != null) { this.analyzeOnly = configuration.getBoolean(getShouldAnalyzeOnlyKey(), shouldAnalyzeOnlyDefault()); } }