资源简介
sell.rar
代码片段和文件信息
/*
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
http://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) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 277 2019-03-10 13:36 sell\.gitignore
文件 783 2019-04-05 19:46 sell\.idea\compiler.xm
文件 294 2019-04-05 20:04 sell\.idea\encodings.xm
文件 462 2019-04-05 19:46 sell\.idea\libraries\Maven__antlr_antlr_2_7_7.xm
文件 568 2019-04-05 19:46 sell\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-04-05 19:46 sell\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 543 2019-04-05 19:46 sell\.idea\libraries\Maven__cn_springboot_best_pay_sdk_1_1_0.xm
文件 543 2019-04-05 19:46 sell\.idea\libraries\Maven__commons_codec_commons_codec_1_11.xm
文件 503 2019-04-05 19:46 sell\.idea\libraries\Maven__commons_io_commons_io_2_5.xm
文件 522 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 644 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 595 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 623 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 674 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 688 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 729 2019-04-05 19:46 sell\.idea\libraries\Maven__com_fasterxm
文件 617 2019-04-05 19:46 sell\.idea\libraries\Maven__com_github_binarywang_weixin_java_common_2_7_0.xm
文件 589 2019-04-05 19:46 sell\.idea\libraries\Maven__com_github_binarywang_weixin_java_mp_2_7_0.xm
文件 515 2019-04-05 19:46 sell\.idea\libraries\Maven__com_google_code_gson_gson_2_8_5.xm
文件 499 2019-04-05 19:46 sell\.idea\libraries\Maven__com_google_guava_guava_20_0.xm
文件 546 2019-04-05 19:46 sell\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 529 2019-04-05 19:46 sell\.idea\libraries\Maven__com_squareup_okhttp3_okhttp_3_8_0.xm
文件 510 2019-04-05 19:46 sell\.idea\libraries\Maven__com_squareup_okio_okio_1_13_0.xm
文件 628 2019-04-05 19:46 sell\.idea\libraries\Maven__com_squareup_retrofit2_converter_simplexm
文件 551 2019-04-05 19:46 sell\.idea\libraries\Maven__com_squareup_retrofit2_retrofit_2_3_0.xm
文件 552 2019-04-05 19:46 sell\.idea\libraries\Maven__com_thoughtworks_xstream_xstream_1_4_9.xm
文件 700 2019-04-05 19:46 sell\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 503 2019-04-05 19:46 sell\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
文件 587 2019-04-05 19:46 sell\.idea\libraries\Maven__io_lettuce_lettuce_core_5_1_4_RELEASE.xm
文件 572 2019-04-05 19:46 sell\.idea\libraries\Maven__io_netty_netty_buffer_4_1_33_Final.xm
............此处省略375个文件信息
- 上一篇:今日头条内部面试题.2018.10
- 下一篇:dht库文件
相关资源
- 中国南海岛屿.kml
- CAD批量打印实测可用.zip
- e-puck_avoid_obstacles.zip
- 2018全国各个城市一二三四线等级划分
- 中国省市区数据.xlsx
- 液晶温度计.zip
- 乘用车CAN总线物理层技术要求.pdf
- informatica9.5.1.txt
- teamcenter11.txt
- 996e1ab2a4ee5a44f0d43a127d4303ff.rar
- 数字图像处理.txt
-
weixin_42809254_10923344.xm
l - 格斗游戏.rar
- Matrixs.zip
- weixin_42597664_10518293.zip
- 317870火车头ecshop免登陆发布模块.zip
- RVDS安装包.txt
- 三级数据库大题知识.doc
- 菜鸟学习路线.txt
- MapInspect.exe
- vivado2018.txt
- RADStudioKeyPatch_Lite.rar
- 时空阁CC测试工具Ver1.0.exe
- 549090建设工程监理规范GBT50319-2013.pd
- 地址及解压密码.txt
- 尚硅谷电商项目.txt
- 第三章习题参考答案.rar
- f77f02f73edbf8cac9e0614d220a5407.docx
- CornerNet结构.pdf
- 体育水位计算0.rar
评论
共有 条评论