Skip to content

Commit

Permalink
fixed checkstyle-error by encapsulating PackagerException
Browse files Browse the repository at this point in the history
  • Loading branch information
FibreFoX committed Mar 8, 2016
1 parent f8380e3 commit 3fa03d7
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public FileVisitResult postVisitDirectory(Path source, IOException ioe) throws I
// quietly ignored
} catch(ConfigException e){
project.getLogger().info("Skipping '" + b.getName() + "' because of configuration error '" + e.getMessage() + "'\nAdvice to fix: " + e.getAdvice());
} catch(PackagerException | GradleException ex){
} catch(GradleException ex){
throw new GradleException("Got exception while executing bundler.", ex);
}
}
Expand Down Expand Up @@ -417,7 +417,7 @@ private void applyNativeLauncherWorkaround(Project project, String nativeOutputD
}
}

private void signJarFiles(JavaFXGradlePluginExtension ext) throws PackagerException {
private void signJarFiles(JavaFXGradlePluginExtension ext) {
Project project = this.getProject();
File keyStore = new File(project.getProjectDir(), ext.getKeyStore());
if( !keyStore.exists() ){
Expand Down Expand Up @@ -456,8 +456,11 @@ private void signJarFiles(JavaFXGradlePluginExtension ext) throws PackagerExcept
getJARFilesFromJNLPFiles(ext).forEach(jarFile -> signJarParams.addResource(nativeOutputDir, jarFile));

project.getLogger().info("Signing JAR files for webstart bundle");

new PackagerLib().signJar(signJarParams);
try{
new PackagerLib().signJar(signJarParams);
} catch(PackagerException ex){
throw new GradleException("There was a problem while signing JAR files.", ex);
}
}

private List<File> getGeneratedJNLPFiles(JavaFXGradlePluginExtension ext) {
Expand Down

0 comments on commit 3fa03d7

Please sign in to comment.