{
if( inputFile.exists() )
{
// Read in the SWF
in = new BufferedInputStream(new FileInputStream(inputFile));
SWFReader reader = new SWFReader();
try
{
ISWF swf = reader.readFrom(in, getInputFilePath());
// record any problems encountered reading the swf
problems.addAll(reader.getProblems());
List<ICompilerProblem> linkProblems = new ArrayList<ICompilerProblem>();
// do the optimization
OptimizerSWFTarget target = new OptimizerSWFTarget(swf, project, targetSettings, null);