本文整理了Java中org.apache.maven.continuum.model.project.Project.setOldState()
方法的一些代码示例,展示了Project.setOldState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.setOldState()
方法的具体详情如下:
包路径:org.apache.maven.continuum.model.project.Project
类名称:Project
方法名:setOldState
[英]Set null
[中]设为空
代码示例来源:origin: org.apache.continuum/continuum-core
public void startProjectBuild( int projectId )
throws ContinuumException
{
try
{
Project project = projectDao.getProject( projectId );
project.setOldState( project.getState() );
project.setState( ContinuumProjectState.BUILDING );
projectDao.updateProject( project );
}
catch ( ContinuumStoreException e )
{
log.error( "Error while updating project's state (projectId=" + projectId + ")", e );
throw new ContinuumException( "Error while updating project's state (projectId=" + projectId + ")", e );
}
}
代码示例来源:origin: org.apache.maven.continuum/continuum-model
project.setOldState( getIntegerValue( getTrimmedValue( xmlStreamReader.getElementText()), "oldState", xmlStreamReader, strict ) );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
private void startBuild( BuildContext context )
throws TaskExecutionException
{
Project project = context.getProject();
project.setOldState( project.getState() );
project.setState( ContinuumProjectState.BUILDING );
try
{
store.updateProject( project );
}
catch ( ContinuumStoreException e )
{
throw new TaskExecutionException( "Error persisting project", e );
}
notifierDispatcher.buildStarted( project, context.getBuildDefinition() );
}
代码示例来源:origin: org.apache.continuum/continuum-core
private void startBuild( BuildContext context )
throws TaskExecutionException
{
Project project = context.getProject();
project.setOldState( project.getState() );
project.setState( ContinuumProjectState.BUILDING );
try
{
projectDao.updateProject( project );
}
catch ( ContinuumStoreException e )
{
throw new TaskExecutionException( "Error persisting project", e );
}
notifierDispatcher.buildStarted( project, context.getBuildDefinition() );
}
代码示例来源:origin: org.apache.continuum/continuum-model
project.setOldState( getIntegerValue( getTrimmedValue( getDefaultValue( xmlStreamReader.getElementText(), "0" ) ), "oldState", xmlStreamReader, strict ) );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
project.setOldState( 0 );
代码示例来源:origin: org.apache.continuum/continuum-core
project.setOldState( 0 );
代码示例来源:origin: org.apache.continuum/continuum-core
project.setOldState( 0 );
代码示例来源:origin: org.apache.continuum/continuum-core
project.setOldState( project.getState() );
project.setState( ContinuumBuildConstant.getBuildState( context ) );
project.setBuildNumber( buildNumber );
project.setOldState( 0 );
代码示例来源:origin: org.apache.continuum/continuum-buildagent-core
public static Project getProject( BuildContext buildContext )
{
Project project = new Project();
project.setId( buildContext.getProjectId() );
project.setName( buildContext.getProjectName() );
project.setVersion( buildContext.getProjectVersion() );
project.setScmUrl( buildContext.getScmUrl() );
project.setScmUsername( buildContext.getScmUsername() );
project.setScmPassword( buildContext.getScmPassword() );
project.setScmTag( buildContext.getScmTag() );
project.setExecutorId( buildContext.getExecutorId() );
project.setState( buildContext.getProjectState() );
project.setOldState( buildContext.getProjectState() );
project.setBuildNumber( buildContext.getBuildNumber() );
return project;
}
}
代码示例来源:origin: org.apache.continuum/continuum-core
project.setOldState( project.getState() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
project.setOldState( project.getState() );
project.setOldState( project.getState() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
project.setOldState( 0 );
代码示例来源:origin: org.apache.continuum/continuum-core
project.setOldState( 0 );
内容来源于网络,如有侵权,请联系作者删除!