本文整理了Java中cascading.util.Version.getReleaseFull()
方法的一些代码示例,展示了Version.getReleaseFull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getReleaseFull()
方法的具体详情如下:
包路径:cascading.util.Version
类名称:Version
方法名:getReleaseFull
暂无
代码示例来源: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: cascading/lingual-core
public static String getProductVersion()
{
return createReleaseVersion( cascading.util.Version.getReleaseFull(), cascading.util.Version.getReleaseBuild() );
}
代码示例来源:origin: cwensel/cascading
return true;
boolean isCurrentWip = Version.getReleaseFull() != null && Version.getReleaseFull().contains( "wip" );
boolean isCurrentDev = Version.getReleaseFull() == null || Version.getReleaseFull().contains( "wip-dev" );
代码示例来源:origin: cwensel/cascading
sb.append( urlEncode( Version.CASCADING ) );
sb.append( "&version=" );
sb.append( urlEncode( Version.getReleaseFull() ) );
sb.append( "&version-build=" );
sb.append( urlEncode( Version.getReleaseBuild() ) );
代码示例来源: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 );
}
}
内容来源于网络,如有侵权,请联系作者删除!