if ( JAR_SUBTYPE.contains( artifact.getType().toLowerCase() ) )
{
try
{
JarData jarDetails = dependencies.getJarDependencyDetails( artifact );
String debugInformationCellValue = debugInformationCellNo;
if ( jarDetails.isDebugPresent() )
{
debugInformationCellValue = debugInformationCellYes;
totalDebugInformation.incrementTotal( artifact.getScope() );
}
totalentries.addTotal( jarDetails.getNumEntries(), artifact.getScope() );
totalclasses.addTotal( jarDetails.getNumClasses(), artifact.getScope() );
totalpackages.addTotal( jarDetails.getNumPackages(), artifact.getScope() );
try
{
if ( jarDetails.getJdkRevision() != null )
{
highestjdk = Math.max( highestjdk, Double.parseDouble( jarDetails.getJdkRevision() ) );
}
}
catch ( NumberFormatException e )
{
// ignore
}
String sealedstr = "";
if ( jarDetails.isSealed() )
{
sealedstr = "sealed";
totalsealed.incrementTotal( artifact.getScope() );
}
String name = artifactFile.getName();
String fileLength = fileLengthDecimalFormat.format( artifactFile.length() );
if ( artifactFile.isDirectory() )
{
File parent = artifactFile.getParentFile();
name = parent.getParentFile().getName() + '/' + parent.getName() + '/' + artifactFile.getName();
fileLength = "-";
}
tableRow( hasSealed,
new String[] { name, fileLength,
DEFAULT_DECIMAL_FORMAT.format( jarDetails.getNumEntries() ),
DEFAULT_DECIMAL_FORMAT.format( jarDetails.getNumClasses() ),
DEFAULT_DECIMAL_FORMAT.format( jarDetails.getNumPackages() ),
jarDetails.getJdkRevision(), debugInformationCellValue, sealedstr } );
}
catch ( IOException e )
{
createExceptionInfoTableRow( artifact, artifactFile, e, hasSealed );
}