Examples of PathFilter


Examples of org.eclipse.jgit.treewalk.filter.PathFilter

   */
  public static SubmoduleWalk forPath(Repository repository,
      AbstractTreeIterator iterator, String path) throws IOException {
    SubmoduleWalk generator = new SubmoduleWalk(repository);
    generator.setTree(iterator);
    PathFilter filter = PathFilter.create(path);
    generator.setFilter(filter);
    while (generator.next())
      if (filter.isDone(generator.walk))
        return generator;
    return null;
  }
View Full Code Here

Examples of org.jboss.modules.PathFilter

            }

            // Setup the extended framework moduel spec
            frameworkIdentifier = ModuleIdentifier.create("org.jboss.osgi.framework.extended");
            ModuleSpec.Builder builder = ModuleSpec.build(frameworkIdentifier);
            PathFilter all = PathFilters.acceptAll();

            // Add a dependency on the default framework module
            ModuleIdentifier moduleId = defaultFrameworkModule.getIdentifier();
            DependencySpec moduleDep = DependencySpec.createModuleDependencySpec(all, all, moduleLoader, moduleId, false);
            builder.addDependency(moduleDep);
View Full Code Here

Examples of org.jboss.modules.filter.PathFilter

        for (KernelDeploymentXmlDescriptor kdxd : kdXmlDescriptors) {
            if (kdxd.getBeanFactoriesCount() > 0) {
                final ModuleSpecification moduleSpecification = unit.getAttachment(Attachments.MODULE_SPECIFICATION);
                final ModuleLoader moduleLoader = Module.getBootModuleLoader();
                ModuleDependency dependency = new ModuleDependency(moduleLoader, POJO_MODULE, false, false, false, false);
                PathFilter filter = PathFilters.isChildOf(BaseBeanFactory.class.getPackage().getName());
                dependency.addImportFilter(filter, true);
                dependency.addImportFilter(PathFilters.rejectAll(), false);
                moduleSpecification.addSystemDependency(dependency);
                return;
            }
View Full Code Here

Examples of org.jboss.modules.filter.PathFilter

            // Setup the extended framework module spec
            Module systemModule = injectedSystemModule.getValue();
            ModuleIdentifier systemIdentifier = systemModule.getIdentifier();
            ModuleLoader systemLoader = systemModule.getModuleLoader();
            ModuleSpec.Builder specBuilder = ModuleSpec.build(ModuleIdentifier.create(JBOSGI_PREFIX + ".framework"));
            PathFilter acceptAll = PathFilters.acceptAll();
            specBuilder.addDependency(DependencySpec.createModuleDependencySpec(acceptAll, acceptAll, systemLoader, systemIdentifier, false));

            // Add a dependency on the default framework module
            ModuleLoader bootLoader = Module.getBootModuleLoader();
            ModuleIdentifier frameworkIdentifier = ModuleIdentifier.create("org.jboss.osgi.framework");
View Full Code Here

Examples of org.jboss.modules.filter.PathFilter

            if (extramodules != null)
                sysmodules += "," + extramodules;

            // Add a dependency on the default framework modules
            ModuleLoader bootLoader = Module.getBootModuleLoader();
            PathFilter acceptAll = PathFilters.acceptAll();
            for (String modid : sysmodules.split(",")) {
                modid = modid.trim();
                if (modid.length() > 0) {
                    ModuleIdentifier identifier = ModuleIdentifier.create(modid);
                    specBuilder.addDependency(DependencySpec.createModuleDependencySpec(acceptAll, acceptAll, bootLoader, identifier, false));
View Full Code Here

Examples of org.rhq.core.util.file.PathFilter

        // Calling getAbsolutePath will ensure the filterPath has the native file separator characters. But
        // it is also important that the pattern use native separators because the ultimate matching will be
        // against native file paths.
        filterPattern = FileUtil.useNativeSlash(filterPattern);
        return new PathFilter(FilenameUtils.normalize(filterPath.getAbsolutePath()), filterPattern);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.