-
大小: 13.4MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-07-27
- 語言: 其他
- 標簽: java??springboot??maven??畢業設計??
資源簡介
酒店推薦系統.zip
代碼片段和文件信息
/*
?*?Copyright?2012-2019?the?original?author?or?authors.
?*
?*?Licensed?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.net.*;
import?java.io.*;
import?java.nio.channels.*;
import?java.util.Properties;
public?class?MavenWrapperDownloader?{
????private?static?final?String?WRAPPER_VERSION?=?“0.5.5“;
????/**
?????*?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/“
????????????+?WRAPPER_VERSION?+?“/maven-wrapper-“?+?WRAPPER_VERSION?+?“.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.out.println(“-?ERROR?loading?‘“?+?MAVEN_WRAPPER_PROPERTIES_PATH?+?“‘“);
????????????}?finally?{
????????????????try?{
????????????????????if?(mavenWrapperPropertyFileInputStream?!=?null)?{
????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-01-04?21:16??酒店推薦系統\
?????目錄???????????0??2020-01-04?15:32??酒店推薦系統\app\
?????目錄???????????0??2020-01-04?21:14??酒店推薦系統\app\.git\
?????文件?????????130??2020-01-03?15:01??酒店推薦系統\app\.git\config
?????文件??????????73??2020-01-03?15:01??酒店推薦系統\app\.git\desc
?????文件??????????23??2020-01-03?15:01??酒店推薦系統\app\.git\HEAD
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\hooks\
?????文件?????????177??2020-01-03?15:01??酒店推薦系統\app\.git\hooks\README.sample
?????文件????????1280??2020-01-04?15:15??酒店推薦系統\app\.git\index
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\info\
?????文件?????????113??2020-01-03?15:01??酒店推薦系統\app\.git\info\exclude
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\logs\
?????文件?????????161??2020-01-03?15:01??酒店推薦系統\app\.git\logs\HEAD
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\logs\refs\
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\logs\refs\heads\
?????文件?????????161??2020-01-03?15:01??酒店推薦系統\app\.git\logs\refs\heads\master
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????161??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????148??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????401??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????646??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????182??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????276??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????文件?????????134??2020-01-03?15:01??酒店推薦系統\app\.git\ob
?????目錄???????????0??2020-01-03?15:01??酒店推薦系統\app\.git\ob
............此處省略722個文件信息
評論
共有 條評論