Skip to content

Commit

Permalink
devonfw#1696: fixed downloadJar
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-vcapgemini committed Aug 10, 2023
1 parent 58622fa commit c8e2ab7
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,18 @@ public static int createUpdateTemplatesDialog() {
*/
public static String downloadJar(boolean isDownloadSource) throws MalformedURLException, IOException {

String fileName = "";

ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(Display.getDefault().getActiveShell());
progressMonitor.open();
progressMonitor.getProgressMonitor().beginTask("downloading latest templates...", 0);

File templatesDirectory = getTemplatesDirectory();
try {
fileName = TemplatesJarUtil.downloadLatestDevon4jTemplates(isDownloadSource, templatesDirectory);
TemplatesJarUtil.downloadLatestDevon4jTemplates(isDownloadSource, templatesDirectory);
} finally {
progressMonitor.close();
}

return fileName;
return templatesDirectory.toString();
}

/**
Expand Down

0 comments on commit c8e2ab7

Please sign in to comment.