本文整理汇总了Java中org.apache.maven.model.Contributor.setLocation方法的典型用法代码示例。如果您正苦于以下问题:Java Contributor.setLocation方法的具体用法?Java Contributor.setLocation怎么用?Java Contributor.setLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.maven.model.Contributor
的用法示例。
在下文中一共展示了Contributor.setLocation方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mergeContributor_Properties
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Properties( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
Properties merged = new Properties();
if ( sourceDominant )
{
merged.putAll( target.getProperties() );
merged.putAll( source.getProperties() );
}
else
{
merged.putAll( source.getProperties() );
merged.putAll( target.getProperties() );
}
target.setProperties( merged );
target.setLocation( "properties", InputLocation.merge( target.getLocation( "properties" ),
source.getLocation( "properties" ), sourceDominant ) );
}
示例2: mergeContributor_Name
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Name( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getName();
if ( src != null )
{
if ( sourceDominant || target.getName() == null )
{
target.setName( src );
target.setLocation( "name", source.getLocation( "name" ) );
}
}
}
示例3: mergeContributor_Email
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Email( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getEmail();
if ( src != null )
{
if ( sourceDominant || target.getEmail() == null )
{
target.setEmail( src );
target.setLocation( "email", source.getLocation( "email" ) );
}
}
}
示例4: mergeContributor_Url
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Url( Contributor target, Contributor 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" ) );
}
}
}
示例5: mergeContributor_Organization
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Organization( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getOrganization();
if ( src != null )
{
if ( sourceDominant || target.getOrganization() == null )
{
target.setOrganization( src );
target.setLocation( "organization", source.getLocation( "organization" ) );
}
}
}
示例6: mergeContributor_OrganizationUrl
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_OrganizationUrl( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getOrganizationUrl();
if ( src != null )
{
if ( sourceDominant || target.getOrganizationUrl() == null )
{
target.setOrganizationUrl( src );
target.setLocation( "organizationUrl", source.getLocation( "organizationUrl" ) );
}
}
}
示例7: mergeContributor_Timezone
import org.apache.maven.model.Contributor; //导入方法依赖的package包/类
protected void mergeContributor_Timezone( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
String src = source.getTimezone();
if ( src != null )
{
if ( sourceDominant || target.getTimezone() == null )
{
target.setTimezone( src );
target.setLocation( "timezone", source.getLocation( "timezone" ) );
}
}
}