Class NamespaceDiscovery


  • public class NamespaceDiscovery
    extends java.lang.Object
    • 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 files
        paths - The path to discover in
        Returns:
        An array of NamespaceInFile instances.
        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