com.github.maven_nar
Class Compiler

java.lang.Object
  extended by com.github.maven_nar.Compiler
Direct Known Subclasses:
C, Cpp, Fortran, IDL, Message, Resource

public abstract class Compiler
extends Object

Abstract Compiler class

Author:
Mark Donszelmann

Field Summary
static String MAIN
           
static String TEST
           
 
Constructor Summary
protected Compiler()
           
 
Method Summary
 void copyIncludeFiles(org.apache.maven.project.MavenProject mavenProject, File targetDirectory)
           
 CompilerDef getCompiler(String type, String output)
           
 Set getExcludes()
           
protected  Set getExcludes(String type)
           
protected  List<String> getIncludePaths(String type)
           
 Set getIncludes()
           
protected  Set getIncludes(String type)
           
protected abstract  String getLanguage()
           
 String getName()
           
protected  String getPrefix()
           
 List getSourceDirectories()
           
 void setAbstractCompileMojo(AbstractCompileMojo mojo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN

public static final String MAIN
See Also:
Constant Field Values

TEST

public static final String TEST
See Also:
Constant Field Values
Constructor Detail

Compiler

protected Compiler()
Method Detail

getName

public String getName()
               throws org.apache.maven.plugin.MojoFailureException,
                      org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

setAbstractCompileMojo

public final void setAbstractCompileMojo(AbstractCompileMojo mojo)

getSourceDirectories

public final List getSourceDirectories()

getIncludePaths

protected final List<String> getIncludePaths(String type)

getIncludes

public final Set getIncludes()
                      throws org.apache.maven.plugin.MojoFailureException,
                             org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getIncludes

protected final Set getIncludes(String type)
                         throws org.apache.maven.plugin.MojoFailureException,
                                org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getExcludes

public final Set getExcludes()
                      throws org.apache.maven.plugin.MojoFailureException,
                             org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getExcludes

protected final Set getExcludes(String type)
                         throws org.apache.maven.plugin.MojoFailureException,
                                org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getPrefix

protected final String getPrefix()
                          throws org.apache.maven.plugin.MojoFailureException,
                                 org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getCompiler

public final CompilerDef getCompiler(String type,
                                     String output)
                              throws org.apache.maven.plugin.MojoFailureException,
                                     org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

getLanguage

protected abstract String getLanguage()

copyIncludeFiles

public final void copyIncludeFiles(org.apache.maven.project.MavenProject mavenProject,
                                   File targetDirectory)
                            throws IOException
Throws:
IOException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.