this.log = log;
Clazzpath cp = new Clazzpath();
ClazzpathUnit artifactUnit =
cp.addClazzpathUnit( new FileInputStream( project.getArtifact().getFile() ), project.toString() );
for ( Iterator it = project.getArtifacts().iterator(); it.hasNext(); )
{
Artifact dependency = (Artifact) it.next();
InputStream is = null;
try
{
is = new FileInputStream( dependency.getFile() );
cp.addClazzpathUnit( is, dependency.toString() );
}
finally
{
IOUtil.close( is );
}
}
removable = cp.getClazzes();
removePackages( artifactUnit );
removable.removeAll( artifactUnit.getClazzes() );
removable.removeAll( artifactUnit.getTransitiveDependencies() );
removeSpecificallyIncludedClasses( project, simpleFilters == null
? Collections.<SimpleFilter>emptyList()
: simpleFilters );
}