throws ArchiveCreationException, AssemblyFormattingException
{
final List<FileItem> fileList = assembly.getFiles();
final File basedir = configSource.getBasedir();
final FileFormatter fileFormatter = new FileFormatter( configSource, getLogger() );
for ( final Iterator<FileItem> i = fileList.iterator(); i.hasNext(); )
{
final FileItem fileItem = i.next();
final String sourcePath = fileItem.getSource();
// ensure source file is in absolute path for reactor build to work
File source = new File( sourcePath );
// save the original sourcefile's name, because filtration may
// create a temp file with a different name.
final String sourceName = source.getName();
if ( !source.isAbsolute() )
{
source = new File( basedir, sourcePath );
}
source =
fileFormatter.format( source, fileItem.isFiltered(), fileItem.getLineEnding(),
configSource.getEncoding() );
String destName = fileItem.getDestName();
if ( destName == null )