String outputLocation = destDirectory + fileNameMapping;
try
{
File artifactFile = artifact.getFile();
logger.debug( "Adding artifact: " + artifact.getId() + " with file: " + artifactFile + " to assembly location: " + outputLocation + "." );
<BUG>if ( fileMode != null )
</BUG>
{
<BUG>int mode = TypeConversionUtils.modeToInt( fileMode, logger );
archiver.addFile( artifactFile, outputLocation, mode );
</BUG>
}

String outputLocation = destDirectory + fileNameMapping;
try
{
File artifactFile = artifact.getFile();
logger.debug( "Adding artifact: " + artifact.getId() + " with file: " + artifactFile + " to assembly location: " + outputLocation + "." );
if ( fileMode != -1 )
{
archiver.addFile( artifactFile, outputLocation, fileMode );
}
