org.apache.maven.model.Profile.setSource()方法的使用及代码示例

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

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

Profile.setSource介绍

暂无

代码示例

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

public static Profile cloneProfile( Profile src )
{
  if ( src == null )
  {
    return null;
  }
  
  Profile result = new Profile();
  
  cloneModelBaseFields( src, result );
  
  result.setActivation( cloneActivation( src.getActivation() ) );
  
  BuildBase resultBuild = null;
  if ( src.getBuild() != null )
  {
    resultBuild = new BuildBase();
    cloneBuildBaseFields( src.getBuild(), resultBuild );
  }
  result.setBuild( resultBuild );
  
  result.setId( src.getId() );
  result.setSource( src.getSource() );
  
  return result;
}

代码示例来源:origin: apache/maven

profile.setSource( "profiles.xml" );

代码示例来源:origin: apache/maven

profile.setSource( "settings.xml" );

代码示例来源:origin: lvonk/fitnesse-maven-classpath

Profile p = new Profile();
p.setId(id);
p.setSource("cli");
this.mavenExecutionRequest.addProfile(p);
this.mavenExecutionRequest.addActiveProfile(id);

代码示例来源:origin: org.jvnet.hudson/hudson-maven-embedder

Profile p = new Profile();
p.setId( id );
p.setSource( "cli" );
this.mavenExecutionRequest.addProfile( p );
this.mavenExecutionRequest.addActiveProfile( id );

代码示例来源:origin: org.kie.soup/kie-soup-maven-integration

Profile p = new Profile();
p.setId( id );
p.setSource( "cli" );
mavenExecutionRequest.addProfile( p );
mavenExecutionRequest.addActiveProfile( id );

代码示例来源:origin: org.uberfire/uberfire-maven-integration

Profile p = new Profile();
p.setId( id );
p.setSource( "cli" );
mavenExecutionRequest.addProfile( p );
mavenExecutionRequest.addActiveProfile( id );

相关文章