Tabnine Logo
VersionUtil.isGenericSnapshot
Code IndexAdd Tabnine to your IDE (free)

How to use
isGenericSnapshot
method
in
org.apache.archiva.common.utils.VersionUtil

Best Java code snippets using org.apache.archiva.common.utils.VersionUtil.isGenericSnapshot (Showing top 15 results out of 315)

origin: org.apache.archiva/archiva-common

public static boolean isSnapshot( String version )
{
  Matcher m = UNIQUE_SNAPSHOT_PATTERN.matcher( version );
  if ( m.matches() )
  {
    return true;
  }
  else
  {
    return isGenericSnapshot( version );
  }
}
origin: apache/archiva

public static boolean isSnapshot( String version )
{
  Matcher m = UNIQUE_SNAPSHOT_PATTERN.matcher( version );
  if ( m.matches() )
  {
    return true;
  }
  else
  {
    return isGenericSnapshot( version );
  }
}
origin: apache/archiva

/**
 * <p>
 * Get the release version of the snapshot version.
 * </p>
 * 
 * <p>
 * If snapshot version is 1.0-SNAPSHOT, then release version would be 1.0
 * And if snapshot version is 1.0-20070113.163208-1.jar, then release version would still be 1.0
 * </p>
 *
 * @param snapshotVersion snapshot version
 * @return release version
 */
public static String getReleaseVersion( String snapshotVersion )
{
  Matcher m = UNIQUE_SNAPSHOT_PATTERN.matcher( snapshotVersion );
  if ( isGenericSnapshot( snapshotVersion ) )
  {
    m = GENERIC_SNAPSHOT_PATTERN.matcher( snapshotVersion );
  }
  if ( m.matches() )
  {
    return m.group( 1 );
  }
  else
  {
    return snapshotVersion;
  }
}
origin: org.apache.archiva/archiva-common

/**
 * <p>
 * Get the release version of the snapshot version.
 * </p>
 * 
 * <p>
 * If snapshot version is 1.0-SNAPSHOT, then release version would be 1.0
 * And if snapshot version is 1.0-20070113.163208-1.jar, then release version would still be 1.0
 * </p>
 *
 * @param snapshotVersion snapshot version
 * @return release version
 */
public static String getReleaseVersion( String snapshotVersion )
{
  Matcher m = UNIQUE_SNAPSHOT_PATTERN.matcher( snapshotVersion );
  if ( isGenericSnapshot( snapshotVersion ) )
  {
    m = GENERIC_SNAPSHOT_PATTERN.matcher( snapshotVersion );
  }
  if ( m.matches() )
  {
    return m.group( 1 );
  }
  else
  {
    return snapshotVersion;
  }
}
origin: apache/archiva

else if ( VersionUtil.isGenericSnapshot( expected ) )
origin: org.apache.archiva/maven2-repository

else if ( VersionUtil.isGenericSnapshot( expected ) )
origin: apache/archiva

else if ( VersionUtil.isGenericSnapshot( projectVersion ) )
origin: org.apache.archiva/maven2-repository

else if ( VersionUtil.isGenericSnapshot( projectVersion ) )
origin: apache/archiva

if ( VersionUtil.isGenericSnapshot( newArtifactReference.getVersion( ) ) )
origin: org.apache.archiva/archiva-core-consumers

if ( VersionUtil.isGenericSnapshot( newArtifactReference.getVersion() ) )
origin: apache/archiva

else if ( VersionUtil.isGenericSnapshot( latestVersion ) )
origin: apache/archiva

VersionUtil.isSnapshot( artifact.getVersion() ) | VersionUtil.isGenericSnapshot( artifact.getVersion() );
origin: org.apache.archiva/archiva-rest-services

VersionUtil.isSnapshot( artifact.getVersion() ) | VersionUtil.isGenericSnapshot( artifact.getVersion() );
origin: apache/archiva

if ( !VersionUtil.isGenericSnapshot( version ) )
origin: org.apache.archiva/archiva-rest-services

if ( !VersionUtil.isGenericSnapshot( version ) )
org.apache.archiva.common.utilsVersionUtilisGenericSnapshot

Popular methods of VersionUtil

  • isSnapshot
  • getBaseVersion
  • isUniqueSnapshot
  • getReleaseVersion
    Get the release version of the snapshot version. If snapshot version is 1.0-SNAPSHOT, then releas
  • isVersion
    Tests if the unknown string contains elements that identify it as a version string (or not). The

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now