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

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

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

Project.getBuildResults介绍

[英]Method getBuildResults
[中]方法getBuildResults

代码示例

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

/**
 * Method breakBuildResultAssociation.
 * 
 * @param buildResult
 */
public void breakBuildResultAssociation( BuildResult buildResult )
{
  if ( ! getBuildResults().contains( buildResult ) )
  {
    throw new IllegalStateException( "buildResult isn't associated." );
  }
  getBuildResults().remove( buildResult );
} //-- void breakBuildResultAssociation( BuildResult )

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

/**
 * Method breakBuildResultAssociation
 * 
 * @param buildResult
 */
public void breakBuildResultAssociation(BuildResult buildResult)
{
  if ( ! getBuildResults().contains( buildResult ) )
  {
    throw new IllegalStateException( "buildResult isn't associated." );
  }
  
  getBuildResults().remove( buildResult );
} //-- void breakBuildResultAssociation(BuildResult)

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

/**
 * Method createBuildResultAssociation
 * 
 * @param buildResult
 */
public void createBuildResultAssociation(BuildResult buildResult)
{
  Collection buildResults = getBuildResults();
  
  if ( getBuildResults().contains(buildResult) )
  {
    throw new IllegalStateException( "buildResult is already assigned." );
  }
  
  buildResults.add( buildResult );
} //-- void createBuildResultAssociation(BuildResult)

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

/**
 * Method createBuildResultAssociation.
 * 
 * @param buildResult
 */
public void createBuildResultAssociation( BuildResult buildResult )
{
  Collection buildResults = getBuildResults();
  if ( buildResults.contains( buildResult ) )
  {
    throw new IllegalStateException( "buildResult is already assigned." );
  }
  buildResults.add( buildResult );
} //-- void createBuildResultAssociation( BuildResult )

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

/**
 * Method addBuildResult.
 * 
 * @param buildResult
 */
public void addBuildResult( BuildResult buildResult )
{
  getBuildResults().add( buildResult );
  buildResult.createProjectAssociation( this );
} //-- void addBuildResult( BuildResult )

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

/**
 * Method addBuildResult
 * 
 * @param buildResult
 */
public void addBuildResult(BuildResult buildResult)
{
  if ( !(buildResult instanceof BuildResult) )
  {
    throw new ClassCastException( "Project.addBuildResults(buildResult) parameter must be instanceof " + BuildResult.class.getName() );
  }
  getBuildResults().add( buildResult );
  buildResult.createProjectAssociation( this );
} //-- void addBuildResult(BuildResult)

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

/**
 * Method removeBuildResult.
 * 
 * @param buildResult
 */
public void removeBuildResult( BuildResult buildResult )
{
  buildResult.breakProjectAssociation( this );
  getBuildResults().remove( buildResult );
} //-- void removeBuildResult( BuildResult )

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

/**
 * Method removeBuildResult
 * 
 * @param buildResult
 */
public void removeBuildResult(BuildResult buildResult)
{
  if ( !(buildResult instanceof BuildResult) )
  {
    throw new ClassCastException( "Project.removeBuildResults(buildResult) parameter must be instanceof " + BuildResult.class.getName() );
  }
  buildResult.breakProjectAssociation( this );
  getBuildResults().remove( buildResult );
} //-- void removeBuildResult(BuildResult)

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

/**
 * Method resolveReferences
 * 
 * @param value
 */
private void resolveReferences(Project value)
{
  java.util.Map refs;
  for ( java.util.Iterator i = value.getBuildResults().iterator(); i.hasNext(); )
  {
    resolveReferences( (BuildResult) i.next() );
  }
  if ( projectGroupReferences != null )
  {
    refs = (java.util.Map) projectGroupReferences.get( value );
    if ( refs != null )
    {
      String id = (String) refs.get( "projectGroup" );
      ProjectGroup ref = (ProjectGroup) projectGroupInstances.get( id );
      if ( ref != null && !ref.equals( value.getProjectGroup() ) )
      {
        value.setProjectGroup( ref );
      }
    }
  }
  for ( java.util.Iterator i = value.getBuildDefinitions().iterator(); i.hasNext(); )
  {
    resolveReferences( (BuildDefinition) i.next() );
  }
} //-- void resolveReferences(Project)

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

/**
 * Method resolveReferences.
 * 
 * @param value
 */
private void resolveReferences( Project value )
{
  java.util.Map refs;
  for ( java.util.Iterator i = value.getBuildResults().iterator(); i.hasNext(); )
  {
    resolveReferences( (BuildResult) i.next() );
  }
  if ( projectGroupReferences != null )
  {
    refs = (java.util.Map) projectGroupReferences.get( value );
    if ( refs != null )
    {
      String id = (String) refs.get( "projectGroup" );
      ProjectGroup ref = (ProjectGroup) projectGroupInstances.get( id );
      if ( ref != null && !ref.equals( value.getProjectGroup() ) )
      {
        value.setProjectGroup( ref );
      }
    }
  }
  for ( java.util.Iterator i = value.getBuildDefinitions().iterator(); i.hasNext(); )
  {
    resolveReferences( (BuildDefinition) i.next() );
  }
} //-- void resolveReferences( Project )

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

serializer.writeEndElement();
if ( project.getBuildResults() != null && project.getBuildResults().size() > 0 )
  for ( Iterator iter = project.getBuildResults().iterator(); iter.hasNext(); )

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

serializer.writeEndElement();
if ( ( project.getBuildResults() != null ) && ( project.getBuildResults().size() > 0 ) )
  for ( Iterator iter = project.getBuildResults().iterator(); iter.hasNext(); )

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

builds = project.getBuildResults();

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

for ( Object o : project.getBuildResults() )

相关文章

Project类方法