Code example for ExecutionException

Methods: getMessage

0
        } catch (InterruptedException e) {
            logger.log(Level.INFO, "Signing process was interrupted.");
            throw new RuntimeException(e.getMessage());
        } catch (ExecutionException e) {
            logger.log(Level.INFO, "Unable to sign package, signing process failed.");
            throw new RuntimeException(e.getMessage());
        } 
    } 
 
    @Override 
    public void reSign(File toResign, File resigned) {
        Archive<?> apk = ShrinkWrap.createFromZipFile(JavaArchive.class, toResign);
        apk.delete("META-INF");
        applicationHelper.exportArchiveToFile(toResign, apk);
        sign(toResign, resigned);
    } 
 
    /** 
     * Checks if keystore as specified in {@link AndroidDroneConfiguration} exists. 
     * 
     * If it does not exist, checks if default keystore (in $HOME/.android/debug.keystore) exist. If default keystore does not