[skip] check result of .setExecutable()

This commit is contained in:
Connor Tumbleson 2014-09-23 07:56:28 -05:00
parent cf443b1097
commit 49b6bf70e4

View File

@ -818,8 +818,12 @@ final public class AndrolibResources {
} catch (BrutException ex) { } catch (BrutException ex) {
throw new AndrolibException(ex); throw new AndrolibException(ex);
} }
mAaptBinary.setExecutable(true); if (mAaptBinary.setExecutable(true)) {
return mAaptBinary; return mAaptBinary;
}
System.err.println("Can't set aapt binary as executable");
throw new AndrolibException("Can't set aapt binary as executable");
} }
public File getAndroidResourcesFile() throws AndrolibException { public File getAndroidResourcesFile() throws AndrolibException {