Class AbstractXtextMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.xtext.maven.AbstractXtextMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractInstallDebugInfoMojo, AbstractXtextGeneratorMojo

public abstract class AbstractXtextMojo extends org.apache.maven.plugin.AbstractMojo
Since:
2.26
Author:
Heinrich Weichert
  • Field Details

    • lock

      protected static final Object lock
      Lock object to ensure thread-safety
  • Constructor Details

    • AbstractXtextMojo

      public AbstractXtextMojo()
  • Method Details

    • getProject

      public org.apache.maven.project.MavenProject getProject()
    • getLanguages

      public List<Language> getLanguages()
    • resolveFilePath

      protected File resolveFilePath(String path)
      Resolves the given relative file-path to an absolute File inside the project's base directory
      Parameters:
      path - Relative file path
      Returns:
      File with an absolute path
    • addCompileSourceRoots

      protected void addCompileSourceRoots(Language language)
    • addTestCompileSourceRoots

      protected void addTestCompileSourceRoots(Language language)