com.devonfw.cobigen.api.constants.TemplatesJarConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-api Show documentation
Show all versions of core-api Show documentation
A Code-based incremental Generator
package com.devonfw.cobigen.api.constants;
/**
* Constants needed for handling the templates jar
*/
public class TemplatesJarConstants {
/**
* Latest Jar folder downloaded from Update Templates
*/
public static final String DOWNLOADED_JAR_FOLDER = "/.metadata/cobigen_jars";
/**
* Jar regular expression name to be used in a file name filter, so that we can check whether the
* templates are already downloaded. Checks "templates-anystring-anydigitbetweendots.jar"
*/
public static final String JAR_FILE_REGEX_NAME = "templates-([^-]+)-(\\d+\\.?)+.jar";
/**
* Source jar regular expression name to be used in a file name filter, so that we can check whether the
* templates are already downloaded. Checks "templates-anystring-anydigitbetweendots-sources.jar"
*/
public static final String SOURCES_FILE_REGEX_NAME = "templates-([^-]+)-(\\d+\\.?)+-sources.jar";
/**
* Jar regular expression used to check the version of the jar in oder to find out whether we should
* update. Checks "templates-anystring-capturedigitsbetweendots.jar"
*/
public static final String JAR_VERSION_REGEX_CHECK = "templates-([^-]+)-(\\d+|\\d+(\\.\\d+)*)?\\.jar";
/**
* Sources jar regular expression used to check the version of the sources jar in oder to find out whether
* we should update. Checks "templates-anystring-capturedigitsbetweendots-sources.jar"
*/
public static final String SOURCES_VERSION_REGEX_CHECK = "templates-([^-]+)-(\\d+|\\d+(\\.\\d+)*)?\\-sources.jar";
/**
* GroupId of the latest devon4j templates jar on Maven Central
*/
public static final String DEVON4J_TEMPLATES_GROUPID = "com.devonfw.cobigen";
/**
* ArtifactId of the latest devon4j templates jar on Maven Central
*/
public static final String DEVON4J_TEMPLATES_ARTIFACTID = "templates-devon4j";
}