资源简介
reptilercnaxxo.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
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) {
Syste
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-13 09:25 reptilercnaxxo\
文件 5810 2019-03-11 16:12 reptilercnaxxo\mvnw.cmd
目录 0 2019-03-11 22:56 reptilercnaxxo\target\
目录 0 2019-03-12 00:15 reptilercnaxxo\target\test-classes\
目录 0 2019-03-12 00:15 reptilercnaxxo\target\test-classes\com\
目录 0 2019-03-12 00:15 reptilercnaxxo\target\test-classes\com\xzz\
目录 0 2019-03-12 00:15 reptilercnaxxo\target\test-classes\com\xzz\reptiler\
文件 634 2019-03-12 00:15 reptilercnaxxo\target\test-classes\com\xzz\reptiler\ReptilerApplicationTests.class
目录 0 2019-03-11 22:56 reptilercnaxxo\target\generated-sources\
目录 0 2019-03-11 22:56 reptilercnaxxo\target\generated-sources\annotations\
目录 0 2019-03-13 10:34 reptilercnaxxo\target\classes\
文件 420008 2019-03-13 10:34 reptilercnaxxo\target\classes\reptiler.sql
目录 0 2019-03-11 23:52 reptilercnaxxo\target\classes\com\
目录 0 2019-03-11 23:52 reptilercnaxxo\target\classes\com\xzz\
目录 0 2019-03-13 10:35 reptilercnaxxo\target\classes\com\xzz\reptiler\
目录 0 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\pipeline\
文件 1917 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\pipeline\ArticlePipeline.class
目录 0 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\config\
文件 693 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\config\Config.class
目录 0 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\processor\
文件 3587 2019-03-12 00:47 reptilercnaxxo\target\classes\com\xzz\reptiler\processor\ArticleProcessor.class
目录 0 2019-03-11 23:52 reptilercnaxxo\target\classes\com\xzz\reptiler\dao\
文件 269 2019-03-11 23:52 reptilercnaxxo\target\classes\com\xzz\reptiler\dao\ArticleDao.class
目录 0 2019-03-13 10:34 reptilercnaxxo\target\classes\com\xzz\reptiler\scheduler\
文件 1453 2019-03-13 10:34 reptilercnaxxo\target\classes\com\xzz\reptiler\scheduler\ReptilerScheduler.class
文件 1900 2019-03-13 10:35 reptilercnaxxo\target\classes\com\xzz\reptiler\ReptilerApplication.class
目录 0 2019-03-12 00:02 reptilercnaxxo\target\classes\com\xzz\reptiler\model\
文件 3630 2019-03-12 00:02 reptilercnaxxo\target\classes\com\xzz\reptiler\model\Article.class
目录 0 2019-03-12 00:13 reptilercnaxxo\target\classes\com\xzz\reptiler\service\
文件 1082 2019-03-12 00:13 reptilercnaxxo\target\classes\com\xzz\reptiler\service\ArticleService.class
文件 207 2019-03-12 00:26 reptilercnaxxo\target\classes\application.properties
............此处省略258个文件信息
- 上一篇:目标检测改进点.pdf
- 下一篇:CenterLib.rar
相关资源
- CenterLib.rar
- 463.txt
- 小程序入门到实战.txt
- checkcode.exe
- C600磁盘阵列驱动.zip
- BaiduPanKey.rar
- ssm框架视频.txt
- ISE14.7.txt
- 世界地图shp.zip
- 1111.txt
- 现代操作系统第四版答案.zip
- 全功能codewarrior破解教程.rar
- 积分兑换小程序源码.rar
- 1bbaa9493bf64fa6b626d351c0c84423.zip
- qp198906011234_1095678.zip
- 论文.rar
- alien_invasion.rar
- ship.bmp
- 鱼雷尾追弹道.rar
- 哈夫曼编码.zip
- 转换工具[zj1244].rar
- MultiDesk7.2.zip
- KEPServerEX_6.6注册.rar
- 1814.rar
- DevExpressV17.2.x破解工具百度云盘地址
- 卡券贩卖1.2.7微信卡券对接.zip
- 活字格注册机V4.02.rar
- pack.zip
- 人人商城V3短信宝短信插件.zip
- wz_packaging.zip
评论
共有 条评论