资源简介
xzf.zip
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
Syst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-14 14:20 xzf\
文件 303 2019-04-28 10:15 xzf\.gitignore
目录 0 2019-05-14 14:20 xzf\.idea\
目录 0 2019-05-14 14:20 xzf\.idea\artifacts\
文件 454 2019-05-08 13:12 xzf\.idea\artifacts\xzf_war.xm
文件 5844 2019-05-08 13:12 xzf\.idea\artifacts\xzf_war_exploded.xm
文件 800 2019-05-08 13:12 xzf\.idea\compiler.xm
文件 209 2019-05-08 13:12 xzf\.idea\encodings.xm
目录 0 2019-05-14 14:20 xzf\.idea\libraries\
文件 568 2019-05-08 13:12 xzf\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-05-08 13:12 xzf\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 596 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_alipay_sdk_alipay_sdk_java_3_7_4_ALL.xm
文件 522 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_fasterxm
文件 644 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_fasterxm
文件 595 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_fasterxm
文件 623 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_fasterxm
文件 499 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_google_guava_guava_20_0.xm
文件 546 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 503 2019-05-08 13:12 xzf\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
文件 558 2019-05-08 13:12 xzf\.idea\libraries\Maven__commons_logging_commons_logging_1_2.xm
文件 611 2019-05-08 13:12 xzf\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 473 2019-05-08 13:12 xzf\.idea\libraries\Maven__javax_servlet_jstl_1_2.xm
文件 611 2019-05-08 13:12 xzf\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 492 2019-05-08 13:12 xzf\.idea\libraries\Maven__joda_time_joda_time_2_3.xm
文件 455 2019-05-08 13:12 xzf\.idea\libraries\Maven__junit_junit_4_12.xm
文件 574 2019-05-08 13:12 xzf\.idea\libraries\Maven__mysql_mysql_connector_java_8_0_15.xm
文件 536 2019-05-08 13:12 xzf\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_12.xm
文件 578 2019-05-08 13:12 xzf\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_12.xm
文件 542 2019-05-08 13:12 xzf\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 507 2019-05-08 13:12 xzf\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
............此处省略367个文件信息
- 上一篇:Physx sdk 3.2.31
- 下一篇:CAD门窗绘图算料插件
相关资源
- 505e48b9321d81f1cc8fd4cc545741c8.zip
- 39f6a7f7701b557a65d69950c942a126.zip
- ZeuS2.0.8.9.zip
- 现代雷达原理.pdf
- [算法第四版中文版高清.pdf
- Introduction-to-Statistical-Machine-Learning.p
- xxqgfzrj.rar
- domore.zip
- DiskGenius绿色版.zip
- 实时相机处理技术[美哈齐森著]2011年
- Linux教程(孟庆昌).pdf.zip
- runssm.rar
- 9999999999999999999999999999999999999999999.ra
- 偏微分方程第二版Evans.pdf
- Shadowrocket-2.1.10(501).zip
- Shadowrocket.zip
- RL78G13中文版技术资料.pdf
- SnapGene3.2.1.zip
- wanggangqi-wuyeguanlixitong-master.zip
- 正版ds15.rar
- 数学分析[华东师大第四版].zip
- 数字电子技术基础(第5版)阎石.zi
- 1.3.5@l1c.bin
- tp1;模糊系统与模糊控制教程;立新著王
- H5玫瑰夺宝源码尾数夺宝尾号夺宝H5俊
- weare1.zip
- dbshop_a5.zip
- 12.3.rar
- Fanuc数据采集.zip
- f87d9f027ea7eac654d59a89a968f1b0.pdf
评论
共有 条评论