55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * https ://www.apache.org/licenses/LICENSE-2.0
8+ * http ://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
1716import java .net .*;
1817import java .io .*;
1918import java .nio .channels .*;
@@ -26,7 +25,7 @@ public class MavenWrapperDownloader {
2625 * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
2726 */
2827 private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
29- + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar" ;
28+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar" ;
3029
3130 /**
3231 * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
@@ -55,7 +54,7 @@ public static void main(String args[]) {
5554 // wrapperUrl parameter.
5655 File mavenWrapperPropertyFile = new File (baseDirectory , MAVEN_WRAPPER_PROPERTIES_PATH );
5756 String url = DEFAULT_DOWNLOAD_URL ;
58- if (mavenWrapperPropertyFile .exists ()) {
57+ if (mavenWrapperPropertyFile .exists ()) {
5958 FileInputStream mavenWrapperPropertyFileInputStream = null ;
6059 try {
6160 mavenWrapperPropertyFileInputStream = new FileInputStream (mavenWrapperPropertyFile );
@@ -66,7 +65,7 @@ public static void main(String args[]) {
6665 System .out .println ("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'" );
6766 } finally {
6867 try {
69- if (mavenWrapperPropertyFileInputStream != null ) {
68+ if (mavenWrapperPropertyFileInputStream != null ) {
7069 mavenWrapperPropertyFileInputStream .close ();
7170 }
7271 } catch (IOException e ) {
@@ -77,8 +76,8 @@ public static void main(String args[]) {
7776 System .out .println ("- Downloading from: " + url );
7877
7978 File outputFile = new File (baseDirectory .getAbsolutePath (), MAVEN_WRAPPER_JAR_PATH );
80- if (!outputFile .getParentFile ().exists ()) {
81- if (!outputFile .getParentFile ().mkdirs ()) {
79+ if (!outputFile .getParentFile ().exists ()) {
80+ if (!outputFile .getParentFile ().mkdirs ()) {
8281 System .out .println (
8382 "- ERROR creating output directory '" + outputFile .getParentFile ().getAbsolutePath () + "'" );
8483 }
0 commit comments