The following document contains the results of PMD's CPD 4.2.2.
File | Line |
---|---|
org\apache\maven\plugin\javadoc\TestJavadocJar.java | 152 |
org\apache\maven\plugin\javadoc\TestJavadocReport.java | 206 |
} // ---------------------------------------------------------------------- // 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(); } /** {@inheritDoc} */ protected List getExecutionProjectSourceRoots( MavenProject p ) { if ( "pom".equals( p.getExecutionProject().getPackaging().toLowerCase() ) ) { return Collections.EMPTY_LIST; } return p.getExecutionProject().getTestCompileSourceRoots(); } /** {@inheritDoc} */ protected List getProjectArtifacts( MavenProject p ) { return p.getTestArtifacts(); } /** {@inheritDoc} */ protected File getJavadocDirectory() |