{
ZipFile zipFile = new ZipFile( originalFile );
ZipEntry entry = zipFile.getEntry( "library.swf" );
if ( entry == null )
{
throw new MavenRuntimeException( "Invalid SWC file. Library.swf not found. " + originalFile );
}
InputStream inputSWF = zipFile.getInputStream( entry );
IOUtil.copy( inputSWF, new FileOutputStream( bkpOriginalFile ) );
}
catch ( Exception e )
{
throw new MavenRuntimeException( e.getMessage() + ": " + PathUtil.path( originalFile ), e );
}
return PathUtil.path( bkpOriginalFile );
}