org.apache.maven.artifact.handler.ArtifactHandler.getLanguage()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(36)

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

ArtifactHandler.getLanguage介绍

暂无

代码示例

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

public static ArtifactType newArtifactType( String id, ArtifactHandler handler )
{
  return new DefaultArtifactType( id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(),
                  handler.isAddedToClasspath(), handler.isIncludesDependencies() );
}

代码示例来源:origin: torquebox/jruby-maven-plugins

public String getLanguage() {
  return this.handler.getLanguage();
}

代码示例来源:origin: de.saumya.mojo/gem-maven-plugin

public String getLanguage() {
  return this.handler.getLanguage();
}

代码示例来源:origin: janssk1/maven-graph-plugin

public String getLanguage() {
  return originalHandler.getLanguage();
}

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

/**
 * @see org.apache.maven.reporting.AbstractMavenReport#canGenerateReport()
 */
public boolean canGenerateReport()
{
  // Only execute reports for java projects
  ArtifactHandler artifactHandler = this.project.getArtifact().getArtifactHandler();
  return "java".equals( artifactHandler.getLanguage() );
}

代码示例来源:origin: org.codehaus.mojo/aspectj-maven-plugin

/**
 * @see org.apache.maven.reporting.AbstractMavenReport#canGenerateReport()
 */
public boolean canGenerateReport()
{
  // Only execute reports for java projects
  ArtifactHandler artifactHandler = this.project.getArtifact().getArtifactHandler();
  return "java".equals( artifactHandler.getLanguage() );
}

代码示例来源:origin: org.apache.maven.plugins/maven-clover-plugin

private boolean isJavaProject()
{
  boolean isJavaProject;
  ArtifactHandler artifactHandler = getProject().getArtifact().getArtifactHandler();
  if ( "java".equals( artifactHandler.getLanguage() ) )
  {
    isJavaProject = true;
  }
  else
  {
    getLog().info( "Not instrumenting sources with Clover as this is not a Java project." );
    isJavaProject = false;
  }
  return isJavaProject;
}

代码示例来源:origin: org.codehaus.mojo/emma-maven-plugin

/**
 * Execute this Mojo.
 * 
 * @throws MojoExecutionException if execution failed
 * @throws MojoFailureException if execution failed
 */
public final void execute()
  throws MojoExecutionException, MojoFailureException
{
  final ArtifactHandler artifactHandler = project.getArtifact().getArtifactHandler();
  if ( !"java".equals( artifactHandler.getLanguage() ) )
  {
    getLog().info( "Not executing EMMA, as the project is not a Java classpath-capable package" );
    return;
  }
  checkParameters();
  doExecute();
}

代码示例来源:origin: org.apache.maven.plugins/maven-jxr-plugin

/**
 * Gets the list of the source directories to be included in the JXR report generation
 *
 * @return a List of the source directories whose contents will be included in the JXR report generation
 */
protected List<String> constructSourceDirs()
{
  List<String> sourceDirs = new ArrayList<String>( getSourceRoots() );
  if ( isAggregate() )
  {
    for ( MavenProject project : reactorProjects )
    {
      if ( "java".equals( project.getArtifact().getArtifactHandler().getLanguage() ) )
      {
        sourceDirs.addAll( getSourceRoots( project ) );
      }
    }
  }
  sourceDirs = pruneSourceDirs( sourceDirs );
  return sourceDirs;
}

代码示例来源:origin: io.takari.maven.plugins/takari-lifecycle-plugin

public static ArtifactType newArtifactType(String id, ArtifactHandler handler) {
 return new DefaultArtifactType(id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(), handler.isAddedToClasspath(), handler.isIncludesDependencies());
}

代码示例来源:origin: takari/takari-lifecycle

public static ArtifactType newArtifactType(String id, ArtifactHandler handler) {
 return new DefaultArtifactType(id, handler.getExtension(), handler.getClassifier(), handler.getLanguage(), handler.isAddedToClasspath(), handler.isIncludesDependencies());
}

代码示例来源:origin: org.apache.maven.plugins/maven-javadoc-plugin

if ( "java".equals( artifactHandler.getLanguage() ) )

代码示例来源:origin: org.codehaus.mojo/cobertura-maven-plugin

if ( !"java".equals( artifactHandler.getLanguage() ) )

代码示例来源:origin: org.codehaus.mojo/cobertura-maven-plugin

if ( !"java".equals( artifactHandler.getLanguage() ) )

代码示例来源:origin: org.codehaus.mojo/aspectj-maven-plugin

if (!"java".equalsIgnoreCase(artifactHandler.getLanguage())) {
  getLog().warn("Not executing aspectJ compiler as the project is not a Java classpath-capable package");
  return;

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

if (!forceAjcCompile && !"java".equalsIgnoreCase(artifactHandler.getLanguage())) {
  getLog().warn("Not executing aspectJ compiler as the project is not a Java classpath-capable package");
  return;

代码示例来源:origin: org.apache.maven.plugins/maven-javadoc-plugin

if ( !"java".equals( artifactHandler.getLanguage() ) )

代码示例来源:origin: org.apache.maven.plugins/maven-eclipse-plugin

( Constants.LANGUAGE_JAVA.equals( artifactHandler.getLanguage() ) && !Constants.PROJECT_PACKAGING_EAR.equals( packaging ) );

相关文章