org.sonatype.aether.artifact.Artifact.getProperties()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(135)

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

Artifact.getProperties介绍

[英]Gets the properties of this artifact. While the exact set of available properties is undefined, the following properties are considered to be common: type A high-level characterization of the artifact, e.g. "maven-plugin" or "test-jar". language The programming language this artifact is relevant for, e.g. "java" or "none". includesDependencies A boolean flag indicating whether the artifact presents some kind of bundle that physically includes its dependencies, e.g. a fat WAR. constitutesBuildPath A boolean flag indicating whether the artifact is meant to be used for the compile/runtime/test build path of a consumer project. localPath The (expected) path to the artifact on the local filesystem. An artifact which has this property set is assumed to be not present in any regular repository and likewise has no artifact descriptor.
[中]获取此工件的属性。虽然可用属性的确切集合尚未定义,但以下属性被认为是常见的:输入工件的高级特征,例如“maven-plugin”或“test-jar”。语言与此工件相关的编程语言,例如“java”或“none”。IncludeDependencies一个布尔标志,指示工件是否呈现某种物理上包含其依赖项的捆绑包,例如fat WAR。ConstructtesBuildPath一个布尔标志,指示工件是否用于使用者项目的编译/运行时/测试生成路径。localPath本地文件系统上工件的(预期)路径。假定具有此属性集的工件不存在于任何常规存储库中,并且同样没有工件描述符。

代码示例

代码示例来源:origin: sonatype/sonatype-aether

public Map<String, String> getProperties()
{
  return delegate.getProperties();
}

代码示例来源:origin: org.eclipse.proviso/proviso-spi

public Map<String, String> getProperties()
{
  return delegate.getProperties();
}

代码示例来源:origin: sonatype/sonatype-aether

Map<String, String> properties = artifact.getProperties();
if ( !( properties == null || properties.isEmpty() ) )

代码示例来源:origin: org.sonatype.aether/aether-test-util

Map<String, String> properties = artifact.getProperties();
if ( !( properties == null || properties.isEmpty() ) )

代码示例来源:origin: sonatype/sonatype-aether

@Override
public boolean equals( Object obj )
{
  if ( obj == this )
  {
    return true;
  }
  else if ( !( obj instanceof Artifact ) )
  {
    return false;
  }
  Artifact that = (Artifact) obj;
  return getArtifactId().equals( that.getArtifactId() ) && getGroupId().equals( that.getGroupId() )
    && getVersion().equals( that.getVersion() ) && getExtension().equals( that.getExtension() )
    && getClassifier().equals( that.getClassifier() ) && eq( getFile(), that.getFile() )
    && getProperties().equals( that.getProperties() );
}

代码示例来源:origin: sonatype/sonatype-aether

@Override
public boolean equals( Object obj )
{
  if ( obj == this )
  {
    return true;
  }
  else if ( !( obj instanceof Artifact ) )
  {
    return false;
  }
  Artifact that = (Artifact) obj;
  return getArtifactId().equals( that.getArtifactId() ) && getGroupId().equals( that.getGroupId() )
    && getVersion().equals( that.getVersion() ) && getExtension().equals( that.getExtension() )
    && getClassifier().equals( that.getClassifier() ) && eq( getFile(), that.getFile() )
    && getProperties().equals( that.getProperties() );
}

代码示例来源:origin: org.sonatype.aether/aether-test-util

@Override
public boolean equals( Object obj )
{
  if ( obj == this )
  {
    return true;
  }
  else if ( !( obj instanceof Artifact ) )
  {
    return false;
  }
  Artifact that = (Artifact) obj;
  return getArtifactId().equals( that.getArtifactId() ) && getGroupId().equals( that.getGroupId() )
    && getVersion().equals( that.getVersion() ) && getExtension().equals( that.getExtension() )
    && getClassifier().equals( that.getClassifier() ) && eq( getFile(), that.getFile() )
    && getProperties().equals( that.getProperties() );
}

代码示例来源:origin: sonatype/sonatype-aether

new HashMap<String, String>( dependency.getArtifact().getProperties() );
properties.remove( ArtifactProperties.LOCAL_PATH );
management.setProperties( properties );
  new HashMap<String, String>( dependency.getArtifact().getProperties() );
properties.put( ArtifactProperties.LOCAL_PATH, localPath );
management.setProperties( properties );

相关文章