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

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

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

Organization.setUrl介绍

[英]Set the URL to the organization's home page.
[中]将URL设置为组织的主页。

代码示例

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

public static Organization cloneOrganization( Organization src )
{
  if ( src == null )
  {
    return null;
  }
  
  Organization result = new Organization();
  
  result.setName( src.getName() );
  result.setUrl( src.getUrl() );
  
  return result;
}

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

protected void mergeOrganization_Url( Organization target, Organization source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  String src = source.getUrl();
  if ( src != null )
  {
    if ( sourceDominant || target.getUrl() == null )
    {
      target.setUrl( src );
      target.setLocation( "url", source.getLocation( "url" ) );
    }
  }
}

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

organization.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );

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

organization.setUrl( interpolatedTrimmed( parser.nextText(), "url" ) );

代码示例来源:origin: takari/polyglot-maven

organization.setUrl( getTrimmedValue( value ) );

代码示例来源:origin: maven/maven-model

organization.setUrl( getTrimmedValue( xmlStreamReader.getElementText()) );

代码示例来源:origin: io.tesla.maven/maven-model

protected void mergeOrganization_Url( Organization target, Organization source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  String src = source.getUrl();
  if ( src != null )
  {
    if ( sourceDominant || target.getUrl() == null )
    {
      target.setUrl( src );
      target.setLocation( "url", source.getLocation( "url" ) );
    }
  }
}

代码示例来源:origin: maven/maven-model

organization.setUrl( getTrimmedValue( childElement.getText() ) );

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

private Organization translateOrganization( org.apache.maven.model.v3_0_0.Organization v3Organization )
{
  Organization organization = null;
  if ( v3Organization != null )
  {
    organization = new Organization();
    organization.setName( v3Organization.getName() );
    organization.setUrl( v3Organization.getUrl() );
    if ( StringUtils.isNotEmpty( v3Organization.getLogo() ) )
    {
      warnings.add( "Ignoring <organization><logo/></organization>. It is not supported in v4 POMs." );
    }
  }
  return organization;
}

代码示例来源:origin: maven/maven-model

organization.setUrl( getTrimmedValue( parser.nextText()) );

代码示例来源:origin: org.apache.maven.shared/maven-app-configuration-web

companyModel.getOrganization().setUrl( project.getOrganization().getUrl() );

代码示例来源:origin: io.tesla.maven/maven-model

organization.setUrl( getTrimmedValue( parser.nextText() ) );

代码示例来源:origin: io.tesla.maven/maven-model

organization.setUrl( getTrimmedValue( parser.nextText() ) );

代码示例来源:origin: bsorrentino/maven-confluence-plugin

organization.setUrl( "" );

相关文章