本文整理了Java中org.apache.maven.continuum.model.project.Project.getExecutorId()
方法的一些代码示例,展示了Project.getExecutorId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getExecutorId()
方法的具体详情如下:
包路径:org.apache.maven.continuum.model.project.Project
类名称:Project
方法名:getExecutorId
[英]Get null
[中]获取空值
代码示例来源:origin: org.apache.continuum/continuum-store
if ( p.getExecutorId().equals( bdef.getType() ) || ( StringUtils.isEmpty( bdef.getType() ) &&
ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR.equals( p.getExecutorId() ) ) )
代码示例来源:origin: org.apache.continuum/continuum-core
if ( project.getExecutorId().equals( bd.getType() ) || ( StringUtils.isEmpty( bd.getType() ) &&
ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR.equals( project.getExecutorId() ) ) )
代码示例来源:origin: org.apache.maven.continuum/continuum-core
String templateName = packageName + "/templates/" + project.getExecutorId() + "/" + source + ".vm";
代码示例来源:origin: org.apache.maven.continuum/continuum-store
public BuildDefinition getDefaultBuildDefinition( int projectId )
throws ContinuumStoreException, ContinuumObjectNotFoundException
{
BuildDefinition bd = null;
try
{
bd = getDefaultBuildDefinitionForProject( projectId );
}
catch ( ContinuumObjectNotFoundException cne )
{
// ignore since we will try the project group
getLogger().debug( "no default build definition on project, trying project group" );
}
// project group should have default build definition defined
if ( bd == null )
{
ProjectGroup projectGroup = getProjectGroupByProjectId( projectId );
Project p = getProject( projectId );
List<BuildDefinition> bds = getDefaultBuildDefinitionsForProjectGroup( projectGroup.getId() );
for ( BuildDefinition bdef : bds )
{
if ( p.getExecutorId().equals( bdef.getType() ) || ( StringUtils.isEmpty( bdef.getType() ) &&
ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR.equals( p.getExecutorId() ) ) )
{
return bdef;
}
}
}
return bd;
}
代码示例来源:origin: org.apache.continuum/continuum-buildagent-core
public void execute( Map context )
throws Exception
{
Project project = ContinuumBuildAgentUtil.getProject( context );
logger.info( "Updating project '" + project.getName() + "' from checkout." );
BuildDefinition buildDefinition = ContinuumBuildAgentUtil.getBuildDefinition( context );
File workingDirectory = buildAgentConfigurationService.getWorkingDirectory( project.getId() );
ContinuumAgentBuildExecutor buildExecutor = buildAgentBuildExecutorManager.getBuildExecutor(
project.getExecutorId() );
buildExecutor.updateProjectFromWorkingDirectory( workingDirectory, project, buildDefinition );
}
代码示例来源:origin: org.apache.maven.continuum/continuum-core
ContinuumBuildExecutor buildExecutor = buildExecutorManager.getBuildExecutor( project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
if ( MavenTwoBuildExecutor.ID.equals( project.getExecutorId() ) )
else if ( MavenOneBuildExecutor.ID.equals( project.getExecutorId() ) )
else if ( AntBuildExecutor.ID.equals( project.getExecutorId() ) )
代码示例来源:origin: org.apache.continuum/continuum-core
if ( MavenTwoBuildExecutor.ID.equals( project.getExecutorId() ) )
else if ( MavenOneBuildExecutor.ID.equals( project.getExecutorId() ) )
else if ( AntBuildExecutor.ID.equals( project.getExecutorId() ) )
代码示例来源:origin: org.apache.continuum/continuum-core
if ( !shouldBuild && ( ( !allChangesUnknown && !changes.isEmpty() ) || project.getExecutorId().equals(
ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR ) ) )
代码示例来源:origin: org.apache.continuum/continuum-core
ContinuumBuildExecutor buildExecutor = buildExecutorManager.getBuildExecutor( project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
if ( project.getExecutorId().equals( bd.getType() ) || ( StringUtils.isEmpty( bd.getType() ) &&
ContinuumBuildExecutorConstants.MAVEN_TWO_BUILD_EXECUTOR.equals( project.getExecutorId() ) ) )
代码示例来源:origin: org.apache.maven.continuum/continuum-core
if ( !buildExecutorManager.hasBuildExecutor( project.getExecutorId() ) )
throw new ContinuumException( "No such executor with id '" + project.getExecutorId() + "'." );
代码示例来源:origin: org.apache.continuum/continuum-core
if ( !buildExecutorManager.hasBuildExecutor( project.getExecutorId() ) )
throw new ContinuumException( "No such executor with id '" + project.getExecutorId() + "'." );
代码示例来源:origin: org.apache.continuum/continuum-core
ContinuumBuildExecutor builder = buildExecutorManager.getBuildExecutor( project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
public void execute( Map context )
throws ContinuumStoreException, ContinuumException, ContinuumBuildExecutorException
{
Project project = getProject( context );
project = store.getProjectWithAllDetails( project.getId() );
getLogger().info( "Updating project '" + project.getName() + "' from checkout." );
BuildDefinition buildDefinition = store.getBuildDefinition( getBuildDefinitionId( context ) );
// ----------------------------------------------------------------------
// Make a new descriptor
// ----------------------------------------------------------------------
ContinuumBuildExecutor builder = buildExecutorManager.getBuildExecutor( project.getExecutorId() );
builder.updateProjectFromCheckOut( workingDirectoryService.getWorkingDirectory( project ), project,
buildDefinition );
// ----------------------------------------------------------------------
// Store the new descriptor
// ----------------------------------------------------------------------
store.updateProject( project );
}
}
代码示例来源:origin: org.apache.continuum/continuum-buildagent-core
project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
ContinuumBuildExecutor buildExecutor = buildExecutorManager.getBuildExecutor( project.getExecutorId() );
代码示例来源:origin: org.apache.continuum/continuum-core
project.getState() != ContinuumProjectState.ERROR )
ContinuumBuildExecutor executor = executorManager.getBuildExecutor( project.getExecutorId() );
代码示例来源:origin: org.apache.maven.continuum/continuum-core
project.getState() != ContinuumProjectState.ERROR )
ContinuumBuildExecutor executor = executorManager.getBuildExecutor( project.getExecutorId() );
内容来源于网络,如有侵权,请联系作者删除!