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

x33g5p2x  于2022-02-02 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(181)

本文整理了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

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() );

相关文章

Project类方法