Package com.theoryinpractise.clojure
Class NamespaceDiscovery
- java.lang.Object
-
- com.theoryinpractise.clojure.NamespaceDiscovery
-
public class NamespaceDiscovery extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcharsetprivate booleancompileDeclaredNamespaceOnlyprivate booleanincludeStaleprivate org.apache.maven.plugin.logging.Loglogprivate java.util.regex.PatternnsPatternprivate java.io.FiletargetPathprivate static java.lang.StringTEMPORARY_FILES_REGEXP
-
Constructor Summary
Constructors Constructor Description NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, java.io.File targetPath, java.lang.String charset, boolean compileDeclaredNamespaceOnly)NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, java.io.File targetPath, java.lang.String charset, boolean compileDeclaredNamespaceOnly, boolean includeStale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NamespaceInFile>discoverNamespacesIn(java.io.File basePath)NamespaceInFile[]discoverNamespacesIn(java.lang.String[] namespaceFilterRegexs, java.io.File... paths)Discover namespaces in a list of source directories filtered by a list of namespace regexsjava.util.List<NamespaceInFile>discoverNamespacesInPath(java.io.File... paths)private java.util.List<NamespaceInFile>findNamespaceInFile(java.io.File path, java.io.File file)protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(boolean includeStale)
-
-
-
Field Detail
-
TEMPORARY_FILES_REGEXP
private static final java.lang.String TEMPORARY_FILES_REGEXP
- See Also:
- Constant Field Values
-
nsPattern
private final java.util.regex.Pattern nsPattern
-
log
private org.apache.maven.plugin.logging.Log log
-
compileDeclaredNamespaceOnly
private boolean compileDeclaredNamespaceOnly
-
targetPath
private java.io.File targetPath
-
includeStale
private boolean includeStale
-
charset
private java.lang.String charset
-
-
Constructor Detail
-
NamespaceDiscovery
public NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, java.io.File targetPath, java.lang.String charset, boolean compileDeclaredNamespaceOnly)
-
NamespaceDiscovery
public NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, java.io.File targetPath, java.lang.String charset, boolean compileDeclaredNamespaceOnly, boolean includeStale)
-
-
Method Detail
-
discoverNamespacesIn
public NamespaceInFile[] discoverNamespacesIn(java.lang.String[] namespaceFilterRegexs, java.io.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 filespaths- The path to discover in- Returns:
- An array of
NamespaceInFileinstances. - Throws:
org.apache.maven.plugin.MojoExecutionException- Something went wrong...
-
discoverNamespacesInPath
public java.util.List<NamespaceInFile> discoverNamespacesInPath(java.io.File... paths) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
discoverNamespacesIn
public java.util.List<NamespaceInFile> discoverNamespacesIn(java.io.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 java.util.List<NamespaceInFile> findNamespaceInFile(java.io.File path, java.io.File file) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-