Package com.theoryinpractise.clojure
Class NamespaceDiscovery
java.lang.Object
com.theoryinpractise.clojure.NamespaceDiscovery
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNamespaceDiscovery(org.apache.maven.plugin.logging.Log log, File targetPath, String charset, boolean compileDeclaredNamespaceOnly) NamespaceDiscovery(org.apache.maven.plugin.logging.Log log, File targetPath, String charset, boolean compileDeclaredNamespaceOnly, boolean includeStale) -
Method Summary
Modifier and TypeMethodDescriptiondiscoverNamespacesIn(File basePath) discoverNamespacesIn(String[] namespaceFilterRegexs, File... paths) Discover namespaces in a list of source directories filtered by a list of namespace regexsdiscoverNamespacesInPath(File... paths) private List<NamespaceInFile>findNamespaceInFile(File path, File file) protected org.codehaus.plexus.compiler.util.scan.SourceInclusionScannergetSourceInclusionScanner(boolean includeStale)
-
Field Details
-
TEMPORARY_FILES_REGEXP
- See Also:
-
nsPattern
-
log
private org.apache.maven.plugin.logging.Log log -
compileDeclaredNamespaceOnly
private boolean compileDeclaredNamespaceOnly -
targetPath
-
includeStale
private boolean includeStale -
charset
-
-
Constructor Details
-
NamespaceDiscovery
-
NamespaceDiscovery
-
-
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 filespaths- The path to discover in- Returns:
- An array of
NamespaceInFileinstances. - 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
-