private void scanClassesDirectory ( MavenProjectDirectoryDescriptor projectDescriptor , MavenArtifactDescriptor artifactDescriptor , final String directoryName , Scanner scanner ) { File directory = new File ( directoryName ) ; if ( directory . exists ( ) ) { scanArtifact ( projectDescriptor , artifactDescriptor , directory , directoryName , scanner ) ; } }
Scan the given directory for classes and add them to an artifact .