}
boolean modified = false;
File output = new File(dest);
if (!output.exists() || force || (output.lastModified() <= jar.lastModified())
|| (output.lastModified() <= project.getLastModified()))
{
modified = true;
// jar.write(dest) catches and ignores IOException
OutputStream out = new FileOutputStream(dest);