资源简介
好几天的阅读分析源码,才能把flowable的流程设计器与idm完全剥离实现免登BPMN组件已汉化
代码片段和文件信息
/*
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 277 2019-02-25 09:40 flowable-demo\.gitignore
文件 653 2019-02-25 09:46 flowable-demo\.idea\compiler.xm
文件 177 2019-02-25 09:46 flowable-demo\.idea\encodings.xm
文件 1444 2019-02-25 09:40 flowable-demo\.idea\inspectionProfiles\Project_Default.xm
文件 568 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 543 2019-03-04 11:26 flowable-demo\.idea\libraries\Maven__commons_codec_commons_codec_1_11.xm
文件 616 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__commons_collections_commons_collections_3_2_2.xm
文件 580 2019-03-25 13:37 flowable-demo\.idea\libraries\Maven__commons_discovery_commons_discovery_0_2.xm
文件 503 2019-03-25 13:37 flowable-demo\.idea\libraries\Maven__commons_io_commons_io_2_6.xm
文件 572 2019-03-25 13:37 flowable-demo\.idea\libraries\Maven__commons_logging_commons_logging_1_0_3.xm
文件 514 2019-03-04 13:38 flowable-demo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_46.xm
文件 499 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_carrotsearch_hppc_0_7_1.xm
文件 522 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 644 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 595 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 623 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 674 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 674 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 674 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 702 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 688 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 729 2019-02-25 09:46 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 612 2019-03-04 11:26 flowable-demo\.idea\libraries\Maven__com_fasterxm
文件 545 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_code_findbugs_jsr305_3_0_2.xm
文件 652 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_errorprone_error_prone_annotations_2_2_0.xm
文件 562 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_guava_failureaccess_1_0_1.xm
文件 541 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_guava_guava_27_0_1_jre.xm
文件 835 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xm
文件 587 2019-03-12 14:59 flowable-demo\.idea\libraries\Maven__com_google_j2objc_j2objc_annotations_1_1.xm
............此处省略967个文件信息
评论
共有 条评论