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

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

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

Project.getOldState介绍

[英]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-core

if ( project.getOldState() == ContinuumProjectState.ERROR ||
  oldBuildResult.getState() == ContinuumProjectState.ERROR )
if ( project.getOldState() != ContinuumProjectState.NEW &&
  project.getOldState() != ContinuumProjectState.CHECKEDOUT &&
  project.getState() != ContinuumProjectState.NEW &&
  project.getState() != ContinuumProjectState.CHECKEDOUT )

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

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

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

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

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

if ( project.getOldState() == ContinuumProjectState.ERROR ||
  context.getOldBuildResult().getState() == ContinuumProjectState.ERROR )
if ( project.getOldState() != ContinuumProjectState.NEW &&
  project.getOldState() != ContinuumProjectState.CHECKEDOUT &&
  context.getBuildTrigger().getTrigger() != ContinuumProjectState.TRIGGER_FORCED &&
  project.getState() != ContinuumProjectState.NEW && project.getState() != ContinuumProjectState.CHECKEDOUT )
  project.setState( project.getOldState() );

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

project.setState( project.getOldState() );

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

if ( project.getOldState() == ContinuumProjectState.ERROR ||
  context.getOldBuildResult().getState() == ContinuumProjectState.ERROR )
if ( project.getOldState() != ContinuumProjectState.NEW &&
  project.getOldState() != ContinuumProjectState.CHECKEDOUT &&
  context.getTrigger() != ContinuumProjectState.TRIGGER_FORCED &&
  project.getState() != ContinuumProjectState.NEW && project.getState() != ContinuumProjectState.CHECKEDOUT )
    project.setState( project.getOldState() );

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

project.setState( project.getOldState() );

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

project.setState( project.getOldState() );
project.setOldState( 0 );

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

project.setState( project.getOldState() );

相关文章

Project类方法