}
private void createDirectory( final Assembly assembly )
throws MojoExecutionException, MojoFailureException
{
final AssemblyArchiver archiver = getAssemblyArchiver();
String fullName = getFinalName();
if ( appendAssemblyId )
{
fullName = fullName + "-" + assembly.getId();
}
else if ( getClassifier() != null )
{
fullName = fullName + "-" + getClassifier();
}
try
{
archiver.createArchive( assembly, fullName, "dir", this, isRecompressZippedFiles() );
}
catch ( final ArchiveCreationException e )
{
throw new MojoExecutionException( "Error creating assembly: " + e.getMessage(), e );
}