The following document contains the results of PMD's CPD 4.2.2.
File | Line |
---|---|
org\apache\maven\plugin\javadoc\TestJavadocJar.java | 151 |
org\apache\maven\plugin\javadoc\TestJavadocReport.java | 227 |
} // ---------------------------------------------------------------------- // Protected methods // Important Note: should be inline with methods defined in TestJavadocJar // ---------------------------------------------------------------------- /** {@inheritDoc} */ protected List getProjectBuildOutputDirs( MavenProject p ) { List dirs = new ArrayList(); if ( StringUtils.isNotEmpty( p.getBuild().getOutputDirectory() ) ) { dirs.add( p.getBuild().getOutputDirectory() ); } if ( StringUtils.isNotEmpty( p.getBuild().getTestOutputDirectory() ) ) { dirs.add( p.getBuild().getTestOutputDirectory() ); } return dirs; } /** {@inheritDoc} */ protected List getProjectSourceRoots( MavenProject p ) { if ( "pom".equals( p.getPackaging().toLowerCase() ) ) { return Collections.EMPTY_LIST; } return ( p.getTestCompileSourceRoots() == null ? Collections.EMPTY_LIST |
File | Line |
---|---|
org\apache\maven\plugin\javadoc\JavadocReport.java | 226 |
org\apache\maven\plugin\javadoc\TestJavadocReport.java | 187 |
} /** {@inheritDoc} */ public File getReportOutputDirectory() { if ( reportOutputDirectory == null ) { return outputDirectory; } return reportOutputDirectory; } /** * Method to set the directory where the generated reports will be put * * @param reportOutputDirectory the directory file to be set */ public void setReportOutputDirectory( File reportOutputDirectory ) { updateReportOutputDirectory( reportOutputDirectory, destDir ); } public void setDestDir( String destDir ) { this.destDir = destDir; updateReportOutputDirectory( reportOutputDirectory, destDir ); } private void updateReportOutputDirectory( File reportOutputDirectory, String destDir ) { if ( reportOutputDirectory != null && destDir != null && !reportOutputDirectory.getAbsolutePath().endsWith( destDir ) ) { this.reportOutputDirectory = new File( reportOutputDirectory, destDir ); } else { this.reportOutputDirectory = reportOutputDirectory; } } |