• 大小: 1.5MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-02
  • 语言: 其他
  • 标签: 工作流  

资源简介

spring-cloud 2.0 集成工作流 flowable

资源截图

代码片段和文件信息

/*
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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        303  2019-03-28 10:11  spring-cloud 集成 flowable\springboot-consume\.gitignore

     文件      48337  2019-03-28 10:11  spring-cloud 集成 flowable\springboot-consume\.mvn\wrapper\maven-wrapper.jar

     文件        116  2019-03-28 10:11  spring-cloud 集成 flowable\springboot-consume\.mvn\wrapper\maven-wrapper.properties

     文件       4629  2019-03-28 10:12  spring-cloud 集成 flowable\springboot-consume\.mvn\wrapper\MavenWrapperDownloader.java

     文件        205  2019-03-28 10:11  spring-cloud 集成 flowable\springboot-consume\HELP.md

     文件       9140  2019-03-28 11:36  spring-cloud 集成 flowable\springboot-consume\mvnw

     文件       5837  2019-03-28 11:36  spring-cloud 集成 flowable\springboot-consume\mvnw.cmd

     文件       2142  2019-03-28 10:12  spring-cloud 集成 flowable\springboot-consume\pom.xml

     文件      17928  2019-03-28 10:46  spring-cloud 集成 flowable\springboot-consume\springboot-consume.iml

     文件        613  2019-03-28 11:33  spring-cloud 集成 flowable\springboot-consume\src\main\java\cn\spro\crm\ConsumeApplication.java

     文件        721  2019-03-28 16:08  spring-cloud 集成 flowable\springboot-consume\src\main\java\cn\spro\crm\modules\actru\controller\ActRuFloAbleController.java

     文件        726  2019-03-28 16:08  spring-cloud 集成 flowable\springboot-consume\src\main\java\cn\spro\crm\modules\actru\server\ActRuFloAbleServer.java

     文件        207  2019-03-28 13:47  spring-cloud 集成 flowable\springboot-consume\src\main\resources\application.yml

     文件        374  2019-03-28 10:12  spring-cloud 集成 flowable\springboot-consume\src\test\java\springboot\flowable\springbootconsume\SpringbootConsumeApplicationTests.java

     文件        274  2019-03-28 13:47  spring-cloud 集成 flowable\springboot-consume\target\classes\application.yml

     文件        838  2019-03-28 12:31  spring-cloud 集成 flowable\springboot-consume\target\classes\cn\spro\crm\ConsumeApplication.class

     文件        935  2019-03-28 16:08  spring-cloud 集成 flowable\springboot-consume\target\classes\cn\spro\crm\modules\actru\controller\ActRuFloAbleController.class

     文件        419  2019-03-28 16:08  spring-cloud 集成 flowable\springboot-consume\target\classes\cn\spro\crm\modules\actru\server\ActRuFloAbleServer.class

     文件        703  2019-03-28 11:22  spring-cloud 集成 flowable\springboot-consume\target\test-classes\springboot\flowable\springbootconsume\SpringbootConsumeApplicationTests.class

     文件        303  2019-03-28 10:08  spring-cloud 集成 flowable\springboot-eurake\.gitignore

     文件      48337  2019-03-28 10:08  spring-cloud 集成 flowable\springboot-eurake\.mvn\wrapper\maven-wrapper.jar

     文件        116  2019-03-28 10:08  spring-cloud 集成 flowable\springboot-eurake\.mvn\wrapper\maven-wrapper.properties

     文件       4629  2019-03-28 10:08  spring-cloud 集成 flowable\springboot-eurake\.mvn\wrapper\MavenWrapperDownloader.java

     文件        205  2019-03-28 10:08  spring-cloud 集成 flowable\springboot-eurake\HELP.md

     文件       9140  2019-03-28 11:36  spring-cloud 集成 flowable\springboot-eurake\mvnw

     文件       5837  2019-03-28 11:36  spring-cloud 集成 flowable\springboot-eurake\mvnw.cmd

     文件       2140  2019-03-28 11:51  spring-cloud 集成 flowable\springboot-eurake\pom.xml

     文件      17928  2019-03-28 11:52  spring-cloud 集成 flowable\springboot-eurake\springboot-eurake.iml

     文件        554  2019-03-28 11:21  spring-cloud 集成 flowable\springboot-eurake\src\main\java\springboot\flowable\springbooteurake\EuRakeApplication.java

     文件        424  2019-03-28 11:48  spring-cloud 集成 flowable\springboot-eurake\src\main\resources\application.yml

............此处省略392个文件信息

评论

共有 条评论