File | Line |
---|
org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java | 78 |
org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java | 115 |
final List<String> dirs = new ArrayList<String>();
final Map<String, MavenProject> projectMap = new HashMap<String, MavenProject>();
if ( config.reactorProjects() != null )
{
for ( final MavenProject p : config.reactorProjects() )
{
projectMap.put( key( p.getGroupId(), p.getArtifactId() ), p );
}
}
final List<Artifact> artifacts = config.project().getTestArtifacts();
final List<Artifact> forResourceResolution = new ArrayList<Artifact>( artifacts.size() );
for ( final Artifact artifact : artifacts )
{
final String key = key( artifact.getGroupId(), artifact.getArtifactId() );
final MavenProject p = projectMap.get( key );
if ( p != null )
{ |
File | Line |
---|
org/apache/maven/plugin/javadoc/TestJavadocJar.java | 153 |
org/apache/maven/plugin/javadoc/TestJavadocReport.java | 231 |
}
// ----------------------------------------------------------------------
// Protected methods
// Important Note: should be inline with methods defined in TestJavadocJar
// ----------------------------------------------------------------------
@Override
protected List<String> getProjectBuildOutputDirs( MavenProject p )
{
List<String> dirs = new ArrayList<String>();
if ( StringUtils.isNotEmpty( p.getBuild().getOutputDirectory() ) )
{
dirs.add( p.getBuild().getOutputDirectory() );
}
if ( StringUtils.isNotEmpty( p.getBuild().getTestOutputDirectory() ) )
{
dirs.add( p.getBuild().getTestOutputDirectory() );
}
return dirs;
}
@Override
protected List<String> getProjectSourceRoots( MavenProject p )
{
if ( "pom".equals( p.getPackaging().toLowerCase() ) )
{
return Collections.emptyList();
}
return ( p.getTestCompileSourceRoots() == null ? Collections.<String>emptyList() |