本文整理了Java中org.apache.maven.continuum.model.project.Project.getBuildDefinitions()
方法的一些代码示例,展示了Project.getBuildDefinitions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getBuildDefinitions()
方法的具体详情如下:
包路径:org.apache.maven.continuum.model.project.Project
类名称:Project
方法名:getBuildDefinitions
[英]Method getBuildDefinitions
[中]方法getBuildDefinitions
代码示例来源:origin: org.apache.continuum/continuum-model
/**
* Method removeBuildDefinition.
*
* @param buildDefinition
*/
public void removeBuildDefinition( BuildDefinition buildDefinition )
{
getBuildDefinitions().remove( buildDefinition );
} //-- void removeBuildDefinition( BuildDefinition )
代码示例来源:origin: org.apache.continuum/continuum-model
/**
* Method addBuildDefinition.
*
* @param buildDefinition
*/
public void addBuildDefinition( BuildDefinition buildDefinition )
{
getBuildDefinitions().add( buildDefinition );
} //-- void addBuildDefinition( BuildDefinition )
代码示例来源:origin: org.apache.maven.continuum/continuum-model
/**
* Method removeBuildDefinition
*
* @param buildDefinition
*/
public void removeBuildDefinition(BuildDefinition buildDefinition)
{
if ( !(buildDefinition instanceof BuildDefinition) )
{
throw new ClassCastException( "Project.removeBuildDefinitions(buildDefinition) parameter must be instanceof " + BuildDefinition.class.getName() );
}
getBuildDefinitions().remove( buildDefinition );
} //-- void removeBuildDefinition(BuildDefinition)
代码示例来源:origin: org.apache.maven.continuum/continuum-model
/**
* Method addBuildDefinition
*
* @param buildDefinition
*/
public void addBuildDefinition(BuildDefinition buildDefinition)
{
if ( !(buildDefinition instanceof BuildDefinition) )
{
throw new ClassCastException( "Project.addBuildDefinitions(buildDefinition) parameter must be instanceof " + BuildDefinition.class.getName() );
}
getBuildDefinitions().add( buildDefinition );
} //-- void addBuildDefinition(BuildDefinition)
代码示例来源:origin: org.apache.continuum/continuum-core
public List<BuildDefinition> getBuildDefinitionsForProject( int projectId )
throws ContinuumException
{
Project project = getProjectWithAllDetails( projectId );
return project.getBuildDefinitions();
}
代码示例来源:origin: org.apache.continuum/continuum-core
private boolean isDefaultProjectBuildDefSet( Project project )
{
for ( BuildDefinition bd : project.getBuildDefinitions() )
{
if ( bd.isDefaultForProject() )
{
return true;
}
}
return false;
}
代码示例来源:origin: org.apache.continuum/continuum-core
public List<BuildDefinition> getBuildDefinitions( int projectId )
throws ContinuumException
{
Project project = getProjectWithAllDetails( projectId );
return project.getBuildDefinitions();
}
代码示例来源:origin: org.apache.maven.continuum/continuum-core
public List<BuildDefinition> getBuildDefinitions( int projectId )
throws ContinuumException
{
Project project = getProjectWithAllDetails( projectId );
return project.getBuildDefinitions();
}
代码示例来源:origin: org.apache.maven.continuum/continuum-core
public List<BuildDefinition> getBuildDefinitionsForProject( int projectId )
throws ContinuumException
{
Project project = getProjectWithAllDetails( projectId );
return project.getBuildDefinitions();
}
代码示例来源:origin: org.apache.maven.continuum/continuum-store
public BuildDefinition getDefaultBuildDefinitionForProject( int projectId )
throws ContinuumStoreException, ContinuumObjectNotFoundException
{
Project project;
try
{
project = getProjectWithBuildDetails( projectId );
}
catch ( Exception e )
{
project = null;
}
// check if the project has a default build definition defined
if ( project != null && project.getBuildDefinitions() != null )
{
for ( Iterator i = project.getBuildDefinitions().iterator(); i.hasNext(); )
{
BuildDefinition bd = (BuildDefinition) i.next();
if ( bd.isDefaultForProject() )
{
return bd;
}
}
}
throw new ContinuumObjectNotFoundException( "no default build definition declared for project " + projectId );
}
代码示例来源: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
/**
* 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-core
public void execute( Map map )
throws Exception
{
BuildDefinition buildDefinition = getBuildDefinition( map );
int projectId = getProjectId( map );
Project project = store.getProjectWithAllDetails( projectId );
resolveDefaultBuildDefinitionsForProject( buildDefinition, project );
updateBuildDefinitionInList( project.getBuildDefinitions(), buildDefinition );
map.put( AbstractContinuumAction.KEY_BUILD_DEFINITION, buildDefinition );
}
代码示例来源:origin: org.apache.continuum/continuum-core
public void execute( Map context )
throws Exception
{
BuildDefinition buildDefinition = getBuildDefinition( context );
int projectId = getProjectId( context );
Project project = projectDao.getProjectWithAllDetails( projectId );
resolveDefaultBuildDefinitionsForProject( buildDefinition, project );
updateBuildDefinitionInList( project.getBuildDefinitions(), buildDefinition );
AbstractContinuumAction.setBuildDefinition( context, buildDefinition );
}
代码示例来源:origin: org.apache.maven.continuum/continuum-model
if ( project.getBuildDefinitions() != null && project.getBuildDefinitions().size() > 0 )
for ( Iterator iter = project.getBuildDefinitions().iterator(); iter.hasNext(); )
代码示例来源:origin: org.apache.maven.continuum/data-management-jdo
processBuildDefinitions( project.getBuildDefinitions(), schedules, profiles );
代码示例来源:origin: org.apache.continuum/continuum-model
if ( ( project.getBuildDefinitions() != null ) && ( project.getBuildDefinitions().size() > 0 ) )
for ( Iterator iter = project.getBuildDefinitions().iterator(); iter.hasNext(); )
代码示例来源:origin: org.apache.continuum/data-management-jdo
project.setBuildDefinitions( processBuildDefinitions( project.getBuildDefinitions(), schedules,
profiles, buildDefinitions ) );
代码示例来源:origin: org.apache.continuum/continuum-core
context ) ).getBuildDefinitions().get( 0 );
AbstractContinuumAction.setBuildDefinition( context, bd );
内容来源于网络,如有侵权,请联系作者删除!