Package com.denimgroup.threadfix.framework.filefilter

Examples of com.denimgroup.threadfix.framework.filefilter.FileExtensionFileFilter


        }

        Map<String, AspxParser> parserMap = newMap();

        Collection masterFiles = FileUtils.listFiles(rootDirectory,
                new FileExtensionFileFilter("Master"), TrueFileFilter.INSTANCE);

        for (Object aspxFile : masterFiles) {
            if (aspxFile instanceof File) {
                File file = (File) aspxFile;
View Full Code Here


    @Nonnull
    @Override
    public FrameworkType check(@Nonnull ProjectDirectory directory) {
        Collection csFiles = FileUtils.listFiles(directory.getDirectory(),
                new FileExtensionFileFilter("cs"), TrueFileFilter.INSTANCE);

        LOG.info("Got " + csFiles.size() + " .cs files from the directory.");

        Collection aspxFiles = FileUtils.listFiles(directory.getDirectory(),
                new FileExtensionFileFilter("aspx.cs"), TrueFileFilter.INSTANCE);

        LOG.info("Got " + aspxFiles.size() + " .aspx.cs files from the directory.");

        return csFiles.isEmpty() || !aspxFiles.isEmpty() ? FrameworkType.NONE : FrameworkType.DOT_NET_MVC;
    }
View Full Code Here

            }
        }

        if (frameworkType != FrameworkType.SPRING_MVC) {
            Collection<File> files = FileUtils.listFiles(directory.getDirectory(),
                    new FileExtensionFileFilter("java"), TrueFileFilter.INSTANCE);

            for (File file : files) {
                if (SpringJavaConfigurationChecker.checkJavaFile(file)) {
                    frameworkType = FrameworkType.SPRING_MVC;
                    break;
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.framework.filefilter.FileExtensionFileFilter

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.