Class NamespaceDiscovery

java.lang.Object
com.theoryinpractise.clojure.NamespaceDiscovery

public class NamespaceDiscovery extends Object
  • Field Details

    • TEMPORARY_FILES_REGEXP

      private static final String TEMPORARY_FILES_REGEXP
      See Also:
    • nsPattern

      private final Pattern nsPattern
    • log

      private org.apache.maven.plugin.logging.Log log
    • compileDeclaredNamespaceOnly

      private boolean compileDeclaredNamespaceOnly
    • targetPath

      private File targetPath
    • includeStale

      private boolean includeStale
    • charset

      private String charset
  • Constructor Details

    • NamespaceDiscovery

      public NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, File targetPath, String charset, boolean compileDeclaredNamespaceOnly)
    • NamespaceDiscovery

      public NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, File targetPath, String charset, boolean compileDeclaredNamespaceOnly, boolean includeStale)
  • Method Details

    • discoverNamespacesIn

      public NamespaceInFile[] discoverNamespacesIn(String[] namespaceFilterRegexs, File... paths) throws org.apache.maven.plugin.MojoExecutionException
      Discover namespaces in a list of source directories filtered by a list of namespace regexs
      Parameters:
      namespaceFilterRegexs - An array of regexs to use to filter files
      paths - The path to discover in
      Returns:
      An array of NamespaceInFile instances.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - Something went wrong...
    • discoverNamespacesInPath

      public List<NamespaceInFile> discoverNamespacesInPath(File... paths) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • discoverNamespacesIn

      public List<NamespaceInFile> discoverNamespacesIn(File basePath) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getSourceInclusionScanner

      protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner getSourceInclusionScanner(boolean includeStale)
    • findNamespaceInFile

      private List<NamespaceInFile> findNamespaceInFile(File path, File file) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException