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

x33g5p2x  于2022-01-24 转载在 其他  
字(8.1k)|赞(0)|评价(0)|浏览(179)

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

Model.setLocation介绍

暂无

代码示例

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

@Override
protected void mergeModel_Name( Model target, Model source, boolean sourceDominant, Map<Object, Object> context )
{
  String src = source.getName();
  if ( src != null )
  {
    if ( sourceDominant )
    {
      target.setName( src );
      target.setLocation( "name", source.getLocation( "name" ) );
    }
  }
}

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

protected void mergeModel_Url( Model target, Model 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

protected void mergeModel_Description( Model target, Model source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  String src = source.getDescription();
  if ( src != null )
  {
    if ( sourceDominant || target.getDescription() == null )
    {
      target.setDescription( src );
      target.setLocation( "description", source.getLocation( "description" ) );
    }
  }
}

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

protected void mergeModel_Packaging( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  String src = source.getPackaging();
  if ( src != null )
  {
    if ( sourceDominant || target.getPackaging() == null )
    {
      target.setPackaging( src );
      target.setLocation( "packaging", source.getLocation( "packaging" ) );
    }
  }
}

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

protected void mergeModel_Name( Model target, Model 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" ) );
    }
  }
}

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

protected void mergeModel_ModelVersion( Model target, Model source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  String src = source.getModelVersion();
  if ( src != null )
  {
    if ( sourceDominant || target.getModelVersion() == null )
    {
      target.setModelVersion( src );
      target.setLocation( "modelVersion", source.getLocation( "modelVersion" ) );
    }
  }
}

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

protected void mergeModel_GroupId( Model target, Model source, boolean sourceDominant,
                  Map<Object, Object> context )
{
  String src = source.getGroupId();
  if ( src != null )
  {
    if ( sourceDominant || target.getGroupId() == null )
    {
      target.setGroupId( src );
      target.setLocation( "groupId", source.getLocation( "groupId" ) );
    }
  }
}

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

protected void mergeModel_ArtifactId( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  String src = source.getArtifactId();
  if ( src != null )
  {
    if ( sourceDominant || target.getArtifactId() == null )
    {
      target.setArtifactId( src );
      target.setLocation( "artifactId", source.getLocation( "artifactId" ) );
    }
  }
}

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

protected void mergeModel_Version( Model target, Model source, boolean sourceDominant,
                  Map<Object, Object> context )
{
  String src = source.getVersion();
  if ( src != null )
  {
    if ( sourceDominant || target.getVersion() == null )
    {
      target.setVersion( src );
      target.setLocation( "version", source.getLocation( "version" ) );
    }
  }
}

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

protected void mergeModel_InceptionYear( Model target, Model source, boolean sourceDominant,
                     Map<Object, Object> context )
{
  String src = source.getInceptionYear();
  if ( src != null )
  {
    if ( sourceDominant || target.getInceptionYear() == null )
    {
      target.setInceptionYear( src );
      target.setLocation( "inceptionYear", source.getLocation( "inceptionYear" ) );
    }
  }
}

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

protected void mergeModel_ChildProjectUrlInheritAppendPath( Model target, Model source, boolean sourceDominant,
                              Map<Object, Object> context )
{
  String src = source.getChildProjectUrlInheritAppendPath();
  if ( src != null )
  {
    if ( sourceDominant || target.getChildProjectUrlInheritAppendPath() == null )
    {
      target.setChildProjectUrlInheritAppendPath( src );
      target.setLocation( "child.project.url.inherit.append.path",
                source.getLocation( "child.project.url.inherit.append.path" ) );
    }
  }
}

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

@Override
protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context )
{
  String src = source.getUrl();
  if ( src != null )
  {
    if ( sourceDominant )
    {
      target.setUrl( src );
      target.setLocation( "url", source.getLocation( "url" ) );
    }
    else if ( target.getUrl() == null )
    {
      target.setUrl( extrapolateChildUrl( src, source.isChildProjectUrlInheritAppendPath(), context ) );
      target.setLocation( "url", source.getLocation( "url" ) );
    }
  }
}

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

InputLocation _location;
_location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source );
model.setLocation( "", _location );
for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
    model.setLocation( "childProjectUrlInheritAppendPath", _location );
    model.setChildProjectUrlInheritAppendPath( interpolatedTrimmed( value, "child.project.url.inherit.append.path" ) );
    model.setLocation( "modelVersion", _location );
    model.setModelVersion( interpolatedTrimmed( parser.nextText(), "modelVersion" ) );
    model.setLocation( "groupId", _location );
    model.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) );
    model.setLocation( "artifactId", _location );
    model.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) );
    model.setLocation( "version", _location );
    model.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) );
    model.setLocation( "packaging", _location );
    model.setPackaging( interpolatedTrimmed( parser.nextText(), "packaging" ) );
    model.setLocation( "name", _location );
    model.setName( interpolatedTrimmed( parser.nextText(), "name" ) );
    model.setLocation( "description", _location );
    model.setDescription( interpolatedTrimmed( parser.nextText(), "description" ) );

代码示例来源:origin: ru.yandex.qatools.clay/clay-maven-settings-builder

/**
 *
 *  @param key
 * @param location
 */
public FluentModelBuilder withLocation(Object key, InputLocation location) {
  model.setLocation(key, location);
  return this;
}

代码示例来源:origin: com.buschmais.jqassistant.plugin/jqassistant.plugin.m2repo

@Override
public void setLocation(Object key, InputLocation location) {
  delegate.setLocation(key, location);
}

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

protected void mergeModel_Url( Model target, Model 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: io.tesla.maven/maven-model

protected void mergeModel_ArtifactId( Model target, Model source, boolean sourceDominant,
                   Map<Object, Object> context )
{
  String src = source.getArtifactId();
  if ( src != null )
  {
    if ( sourceDominant || target.getArtifactId() == null )
    {
      target.setArtifactId( src );
      target.setLocation( "artifactId", source.getLocation( "artifactId" ) );
    }
  }
}

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

protected void mergeModel_GroupId( Model target, Model source, boolean sourceDominant,
                  Map<Object, Object> context )
{
  String src = source.getGroupId();
  if ( src != null )
  {
    if ( sourceDominant || target.getGroupId() == null )
    {
      target.setGroupId( src );
      target.setLocation( "groupId", source.getLocation( "groupId" ) );
    }
  }
}

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

protected void mergeModel_Version( Model target, Model source, boolean sourceDominant,
                  Map<Object, Object> context )
{
  String src = source.getVersion();
  if ( src != null )
  {
    if ( sourceDominant || target.getVersion() == null )
    {
      target.setVersion( src );
      target.setLocation( "version", source.getLocation( "version" ) );
    }
  }
}

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

protected void mergeModel_Description( Model target, Model source, boolean sourceDominant,
                    Map<Object, Object> context )
{
  String src = source.getDescription();
  if ( src != null )
  {
    if ( sourceDominant || target.getDescription() == null )
    {
      target.setDescription( src );
      target.setLocation( "description", source.getLocation( "description" ) );
    }
  }
}

相关文章

Model类方法