Class AntWebAppContext

    • Constructor Detail

      • AntWebAppContext

        public AntWebAppContext​(org.apache.tools.ant.Project project)
                         throws java.lang.Exception
        Default constructor. Takes project as an argument
        Parameters:
        project - the project.
        Throws:
        java.lang.Exception - if unable to create webapp context
    • Method Detail

      • dump

        public static void dump​(java.lang.ClassLoader loader)
      • addAttributes

        public void addAttributes​(Attributes atts)
        Adds a new Ant's attributes tag object if it have not been created yet.
        Parameters:
        atts - the attributes
      • addLib

        public void addLib​(org.apache.tools.ant.types.FileSet lib)
      • addClasses

        public void addClasses​(org.apache.tools.ant.types.FileSet classes)
      • setJettyEnvXml

        public void setJettyEnvXml​(java.io.File jettyEnvXml)
      • getJettyEnvXml

        public java.io.File getJettyEnvXml()
      • getLibraries

        public java.util.List getLibraries()
      • addScanTargets

        public void addScanTargets​(org.apache.tools.ant.types.FileSet scanTargets)
      • getScanTargetFiles

        public java.util.List getScanTargetFiles()
      • getScanFiles

        public java.util.List<java.io.File> getScanFiles()
      • isScanned

        public boolean isScanned​(java.io.File file)
      • initScanFiles

        public java.util.List<java.io.File> initScanFiles()
      • getClassPathFiles

        public java.util.List<java.io.File> getClassPathFiles()
        Returns:
        a list of classpath files (libraries and class directories).
      • getLibrariesConfiguration

        public FileMatchingConfiguration getLibrariesConfiguration()
        Returns:
        a FileMatchingConfiguration object describing the configuration of all libraries added to this particular web app (both classes and libraries).
      • getContextXml

        public java.io.File getContextXml()
      • setContextXml

        public void setContextXml​(java.io.File contextXml)