congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Version.getReleaseBuild
Code IndexAdd Tabnine to your IDE (free)

How to use
getReleaseBuild
method
in
cascading.util.Version

Best Java code snippets using cascading.util.Version.getReleaseBuild (Showing top 7 results out of 315)

origin: cwensel/cascading

public static String getVersionString()
 {
 if( getVersionProperties().isEmpty() )
  return null;
 String releaseVersion;
 if( getReleaseBuild() == null || getReleaseBuild().isEmpty() )
  releaseVersion = String.format( "%s %s", CASCADING, getReleaseFull() );
 else
  releaseVersion = String.format( "%s %s-%s", CASCADING, getReleaseFull(), getReleaseBuild() );
 return releaseVersion;
 }
origin: cwensel/cascading

public static String getRelease()
 {
 if( getVersionProperties().isEmpty() )
  return null;
 if( getReleaseBuild() == null || getReleaseBuild().isEmpty() )
  return String.format( "%s", getReleaseFull() );
 else
  return String.format( "%s-%s", getReleaseFull(), getReleaseBuild() );
 }
origin: cwensel/cascading

private static String buildURL()
 {
 String baseURL = System.getProperty( UPDATE_URL, "" );
 if( baseURL.isEmpty() )
  {
  String releaseBuild = Version.getReleaseBuild();
  // if wip, only test if a newer wip version is available
  if( releaseBuild != null && releaseBuild.contains( "wip" ) )
   baseURL = "http://files.concurrentinc.com/cascading/";
  else
   baseURL = "http://files.cascading.org/cascading/";
  }
 if( !baseURL.endsWith( "/" ) )
  baseURL += "/";
 baseURL = String.format( "%s%s/%s", baseURL, Version.getReleaseMajor(), UPDATE_PROPERTIES );
 return baseURL;
 }
origin: cascading/lingual-core

public static String getProductVersion()
 {
 return createReleaseVersion( cascading.util.Version.getReleaseFull(), cascading.util.Version.getReleaseBuild() );
 }
origin: cwensel/cascading

public static boolean hasAllVersionInfo()
 {
 return !Util.isEmpty( getReleaseBuild() ) && hasMajorMinorVersionInfo();
 }
origin: cwensel/cascading

sb.append( urlEncode( Version.getReleaseFull() ) );
sb.append( "&version-build=" );
sb.append( urlEncode( Version.getReleaseBuild() ) );
sb.append( "&frameworks=" );
sb.append( urlEncode( getProperty( AppProps.APP_FRAMEWORKS ) ) );
origin: cwensel/cascading

public void writeStats( PlannerContext plannerContext, RuleResult ruleResult )
 {
 Path path = getPlanStatsPath();
 if( path == null )
  return;
 File file = path.resolve( String.format( "planner-stats-%s-%s.txt", ruleResult.getRegistry().getName(), ruleResult.getResultStatus() ) ).toFile();
 processLogger.logInfo( "writing planner stats to: {}", file );
 file.getParentFile().mkdirs();
 try( PrintWriter writer = new PrintWriter( file ) )
  {
  Flow flow = plannerContext.getFlow();
  Map<Object, Object> configAsProperties = flow.getConfigAsProperties();
  writer.format( "cascading version: %s, build: %s\n", emptyOrValue( Version.getReleaseFull() ), emptyOrValue( Version.getReleaseBuild() ) );
  writer.format( "application id: %s\n", emptyOrValue( AppProps.getApplicationID( configAsProperties ) ) );
  writer.format( "application name: %s\n", emptyOrValue( AppProps.getApplicationName( configAsProperties ) ) );
  writer.format( "application version: %s\n", emptyOrValue( AppProps.getApplicationVersion( configAsProperties ) ) );
  writer.format( "platform: %s\n", emptyOrValue( flow.getPlatformInfo() ) );
  writer.format( "frameworks: %s\n", emptyOrValue( AppProps.getApplicationFrameworks( configAsProperties ) ) );
  writer.println();
  ruleResult.writeStats( writer );
  }
 catch( IOException exception )
  {
  processLogger.logError( "could not write stats", exception );
  }
 }
cascading.utilVersiongetReleaseBuild

Popular methods of Version

  • getRelease
  • getReleaseFull
  • getReleaseMajor
  • getReleaseMinor
  • getVersionProperties
  • getVersionString
  • hasMajorMinorVersionInfo
  • loadVersionProperties
  • printBanner
  • warnOnDuplicate
    A shaded jar will have multiple version.properties, e.g. file:/mnt/var/lib/hadoop/tmp/hadoop-unjar7

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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