in src/main/java/org/apache/maven/doxia/linkcheck/DefaultLinkCheck.java [431:459]
private void checkFile( File file, LinkcheckModel model )
{
if ( LOG.isDebugEnabled() )
{
LOG.debug( " File - " + file );
}
String fileRelativePath = file.getAbsolutePath();
if ( fileRelativePath.startsWith( this.basedir.getAbsolutePath() ) )
{
fileRelativePath = fileRelativePath.substring( this.basedir.getAbsolutePath().length() + 1 );
}
fileRelativePath = fileRelativePath.replace( '\\', '/' );
LinkcheckFile linkcheckFile = new LinkcheckFile();
linkcheckFile.setAbsolutePath( file.getAbsolutePath() );
linkcheckFile.setRelativePath( fileRelativePath );
check( linkcheckFile );
model.addFile( linkcheckFile );
if ( ( model.getFiles().size() % 100 == 0 ) && LOG.isInfoEnabled() )
{
LOG.info( "Found " + model.getFiles().size() + " files so far." );
}
}