org.apache.maven.continuum.model.project.Project.getBuildNumber()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.apache.maven.continuum.model.project.Project.getBuildNumber()方法的一些代码示例,展示了Project.getBuildNumber()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getBuildNumber()方法的具体详情如下:
包路径:org.apache.maven.continuum.model.project.Project
类名称:Project
方法名:getBuildNumber

Project.getBuildNumber介绍

[英]Get null
[中]获取空值

代码示例

代码示例来源:origin: org.apache.maven.continuum/continuum-core

protected Properties getContinuumSystemProperties( Project project )
{
  Properties properties = new Properties();
  properties.setProperty( "continuum.project.group.name", project.getProjectGroup().getName() );
  properties.setProperty( "continuum.project.lastBuild.state", String.valueOf( project.getOldState() ) );
  properties.setProperty( "continuum.project.lastBuild.number", String.valueOf( project.getBuildNumber() ) );
  properties.setProperty( "continuum.project.nextBuild.number", String.valueOf( project.getBuildNumber() + 1 ) );
  return properties;
}

代码示例来源:origin: org.apache.continuum/continuum-core

protected Properties getContinuumSystemProperties( Project project )
{
  Properties properties = new Properties();
  properties.setProperty( "continuum.project.group.name", project.getProjectGroup().getName() );
  properties.setProperty( "continuum.project.lastBuild.state", String.valueOf( project.getOldState() ) );
  properties.setProperty( "continuum.project.lastBuild.number", String.valueOf( project.getBuildNumber() ) );
  properties.setProperty( "continuum.project.nextBuild.number", String.valueOf( project.getBuildNumber() + 1 ) );
  properties.setProperty( "continuum.project.id", String.valueOf( project.getId() ) );
  properties.setProperty( "continuum.project.name", project.getName() );
  properties.setProperty( "continuum.project.version", project.getVersion() );
  return properties;
}

代码示例来源:origin: org.apache.continuum/continuum-buildagent-core

protected Properties getContinuumSystemProperties( Project project )
{
  Properties properties = new Properties();
  properties.setProperty( "continuum.project.group.name", project.getProjectGroup().getName() );
  properties.setProperty( "continuum.project.lastBuild.state", String.valueOf( project.getOldState() ) );
  properties.setProperty( "continuum.project.lastBuild.number", String.valueOf( project.getBuildNumber() ) );
  properties.setProperty( "continuum.project.nextBuild.number", String.valueOf( project.getBuildNumber() + 1 ) );
  properties.setProperty( "continuum.project.id", String.valueOf( project.getId() ) );
  properties.setProperty( "continuum.project.name", project.getName() );
  properties.setProperty( "continuum.project.version", project.getVersion() );
  return properties;
}

代码示例来源:origin: org.apache.continuum/continuum-model

serializer.writeEndElement();
if ( project.getBuildNumber() != 0 )
  serializer.writeCharacters( String.valueOf( project.getBuildNumber() ) );
  serializer.writeEndElement();

代码示例来源:origin: org.apache.maven.continuum/continuum-model

serializer.writeEndElement();
if ( project.getBuildNumber() != 0 )
  serializer.writeCharacters( String.valueOf( project.getBuildNumber() ) );
  serializer.writeEndElement();

代码示例来源:origin: org.apache.continuum/continuum-builder

context.put( ContinuumBuildConstant.KEY_PROJECT_VERSION, project.getVersion() );
context.put( ContinuumBuildConstant.KEY_EXECUTOR_ID, project.getExecutorId() );
context.put( ContinuumBuildConstant.KEY_PROJECT_BUILD_NUMBER, project.getBuildNumber() );
context.put( ContinuumBuildConstant.KEY_SCM_URL, project.getScmUrl() );
context.put( ContinuumBuildConstant.KEY_PROJECT_STATE, project.getState() );

代码示例来源:origin: org.apache.continuum/continuum-core

buildResult.setBuildNumber( project.getBuildNumber() + 1 );
buildResult.setModifiedDependencies( distributedBuildUtil.getModifiedDependencies( oldBuildResult,
                                          result ) );

代码示例来源:origin: org.apache.continuum/continuum-core

buildNumber = project.getBuildNumber() + 1;
buildNumber = project.getBuildNumber();

代码示例来源:origin: org.apache.maven.continuum/continuum-core

project.setBuildNumber( project.getBuildNumber() + 1 );
buildResult.setBuildNumber( project.getBuildNumber() );

代码示例来源:origin: org.apache.continuum/continuum-core

project.setBuildNumber( project.getBuildNumber() + 1 );
buildResult.setBuildNumber( project.getBuildNumber() );

相关文章

Project类方法