Package com.sun.enterprise.diagnostics.util

Examples of com.sun.enterprise.diagnostics.util.SystemAppsFilter


     * Captures applications deployment descriptors and generated files
     * @throws DiagnosticException
     */
    public Data capture() throws DiagnosticException {
        WritableDataImpl dataImpl = new WritableDataImpl(DataType.APPL_INFO);
        dataImpl.addChild(captureGeneratedFilesRelatedInfo(Constants.GENERATED_DIR,new SystemAppsFilter()));
        dataImpl.addChild(captureApplicationRelatedInfo(Constants.APPLICATIONS_DIR, new DDFilter()));
        return dataImpl;
    }//capture
View Full Code Here


         // Visit subfolders to search files with matching the filter

        if (filteredChildren != null) {
            if(filteredChildren.length ==  0) {
                children = sourceFolder.list();
                SystemAppsFilter appFilter = new SystemAppsFilter();
                for (int i = 0 ; i < children.length; i++) {
                    String childName =  relativePath + File.separator + children[i];
                    String absoluteChildName = repositoryFolder  + File.separator + childName;
                    File child = new File(absoluteChildName);
                    if (child.isDirectory()){
                        //check whether the directory is actually a system application directory
                        if(appFilter.accept(null , children[i])){
                            dataImpl.addChild(captureApplicationRelatedInfo(childName, filter));
                        }
                    }
                }
            } else {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.diagnostics.util.SystemAppsFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.