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

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

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

Model.setInceptionYear介绍

[英]Set the year of the project's inception, specified with 4 digits. This value is used when generating copyright notices as well as being informational.
[中]设置项目开始的年份,用4位数字指定。该值用于生成版权声明以及提供信息。

代码示例

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

public void setInceptionYear( String inceptionYear )
{
  getModel().setInceptionYear( inceptionYear );
}

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

public void setInceptionYear( String inceptionYear )
{
  getModel().setInceptionYear( inceptionYear );
}

代码示例来源: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

model.setInceptionYear( interpolatedTrimmed( parser.nextText(), "inceptionYear" ) );

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

child.setInceptionYear( parent.getInceptionYear() );

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

child.setInceptionYear( parent.getInceptionYear() );

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

model.setInceptionYear( interpolatedTrimmed( parser.nextText(), "inceptionYear" ) );

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

result.setInceptionYear( src.getInceptionYear() );
result.setIssueManagement( cloneIssueManagement( src.getIssueManagement() ) );
result.setLicenses( cloneList( src.getLicenses(), LICENSE_CLONER ) );

代码示例来源:origin: mojohaus/flatten-maven-plugin

@Override
  public void set( Model model, String value )
  {
    model.setInceptionYear( value );
  };
};

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

@Override
public void setInceptionYear(String inceptionYear) {
  delegate.setInceptionYear(inceptionYear);
}

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

/**
 * Set the year of the project's inception, specified with 4
 * digits. This value is
 *             used when generating copyright notices as well
 * as being informational.
 *
 * @param inceptionYear
 */
public FluentModelBuilder withInceptionYear(String inceptionYear) {
  model.setInceptionYear(inceptionYear);
  return this;
}

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

model.setInceptionYear(inceptionYear);

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

model.setInceptionYear( getTrimmedValue( parser.nextText() ) );

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

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: maven/maven-model

model.setInceptionYear( getTrimmedValue( xmlStreamReader.getElementText()) );

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

model.setInceptionYear( getTrimmedValue( childElement.getText() ) );

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

model.setInceptionYear( getTrimmedValue( parser.nextText()) );

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

model.setInceptionYear( getTrimmedValue( parser.nextText() ) );

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

model.setInceptionYear( getTrimmedValue( parser.nextText() ) );

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

model.setInceptionYear( v3Model.getInceptionYear() );
model.setIssueManagement( translateIssueManagement( v3Model ) );

相关文章

Model类方法