Skip to content
Permalink
Browse files
ant_on_air: Replace task makes Ant fail if file does not exist (inste…
…ad of throwing an uncaught error)
  • Loading branch information
joshtynjala committed Nov 21, 2016
1 parent e62376e commit 60b0452754aef2c8759e98aeac674cddcac0127d
Showing 1 changed file with 5 additions and 0 deletions.
@@ -18,6 +18,7 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.ant.tags
{
import flash.errors.IOError;
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;
@@ -62,6 +63,10 @@ package org.apache.flex.ant.tags

try {
var f:File = File.applicationDirectory.resolvePath(file);
if(!f.exists)
{
throw new IOError("File not found: " + f.nativePath);
}
}
catch (e:Error)
{

0 comments on commit 60b0452

Please sign in to comment.