diff --git a/src/main/org/apache/tools/ant/taskdefs/Get.java b/src/main/org/apache/tools/ant/taskdefs/Get.java index c636ab54c..5ff9a5403 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Get.java +++ b/src/main/org/apache/tools/ant/taskdefs/Get.java @@ -135,23 +135,23 @@ public class Get extends Task { } } - //set up logging - final int logLevel = Project.MSG_INFO; - DownloadProgress progress = null; - if (verbose) { - progress = new VerboseProgress(System.out); - } + //set up logging + final int logLevel = Project.MSG_INFO; + DownloadProgress progress = null; + if (verbose) { + progress = new VerboseProgress(System.out); + } - //execute the get - try { - doGet(source, dest, logLevel, progress); - } catch (final IOException ioe) { - log("Error getting " + source + " to " + dest); - if (!ignoreErrors) { - throw new BuildException(ioe, getLocation()); + //execute the get + try { + doGet(source, dest, logLevel, progress); + } catch (final IOException ioe) { + log("Error getting " + source + " to " + dest); + if (!ignoreErrors) { + throw new BuildException(ioe, getLocation()); + } } } - } } /**