Examples of addExclude()


Examples of org.apache.jackrabbit.vault.fs.api.PathFilterSet.addExclude()

                    String patt = idx > 0 ? rule.substring(idx + 1) : "";
                    DefaultPathFilter pf = new DefaultPathFilter(patt);
                    if (type.equals("include")) {
                        set.addInclude(pf);
                    } else {
                        set.addExclude(pf);
                    }
                }
            } else {
                for (NodeIterator rules = filter.getNodes(); rules.hasNext();) {
                    Node rule = rules.nextNode();
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.PathFilterSet.addExclude()

                    String pattern = rule.getProperty(JcrPackageDefinitionImpl.PN_PATTERN).getString();
                    DefaultPathFilter pf = new DefaultPathFilter(pattern);
                    if (type.equals("include")) {
                        set.addInclude(pf);
                    } else {
                        set.addExclude(pf);
                    }
                }
            }
            wsp.add(set);
        }
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.PathFilterSet.addExclude()

        rcp.setNoOrdering(cl.hasOption(optNoOrdering));
        rcp.setCredentialsProvider(app.getCredentialsStore());
        DefaultWorkspaceFilter srcFilter = new DefaultWorkspaceFilter();
        PathFilterSet excludes = new PathFilterSet("/");
        for (Object e: cl.getValues(optExclude)) {
            excludes.addExclude(new DefaultPathFilter(e.toString()));
        }
        srcFilter.add(excludes);
        rcp.setSourceFilter(srcFilter);
        rcp.copy(src, dst, recursive);
    }
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.PathFilterSet.addExclude()

            Node child = n1.item(i);
            if (child.getNodeType() == Node.ELEMENT_NODE) {
                if (child.getNodeName().equals("include")) {
                    def.addInclude(readFilter((Element) child));
                } else if (child.getNodeName().equals("exclude")) {
                    def.addExclude(readFilter((Element) child));
                } else {
                    throw new ConfigurationException("either <include> or <exclude> expected.");
                }
            }
        }
View Full Code Here

Examples of org.apache.maven.model.FileSet.addExclude()

            for (Object include : resource.getIncludes())
                fileSet.addInclude((String) include);

            for (Object exclude : resource.getExcludes())
                fileSet.addExclude((String) exclude);

            File resourceDirectory = new File(fileSet.getDirectory());
            if (!resourceDirectory.isAbsolute())
                resourceDirectory = new File(resourceDirectory.getPath());
View Full Code Here

Examples of org.apache.maven.model.FileSet.addExclude()

        else
        {
            prepareInclusionSet(fileSet);
            prepareExclusionSet(fileSet);

            fileSet.addExclude(SNAPSHOT_JARS);
            fileSet.addExclude(SNAPSHOT_WARS);
        }

        // Include default artifact types:
        // fileSet.addInclude(INCLUDES_JARS);
View Full Code Here

Examples of org.apache.maven.model.FileSet.addExclude()

        {
            prepareInclusionSet(fileSet);
            prepareExclusionSet(fileSet);

            fileSet.addExclude(SNAPSHOT_JARS);
            fileSet.addExclude(SNAPSHOT_WARS);
        }

        // Include default artifact types:
        // fileSet.addInclude(INCLUDES_JARS);
        // fileSet.addInclude(INCLUDES_WARS);
View Full Code Here

Examples of org.apache.maven.model.Resource.addExclude()

        Resource resource = new Resource();
        List resources = new ArrayList();
        resources.add( resource );
        resource.setDirectory( unitFilesDir );
        resource.setFiltering( true );
        resource.addExclude( "*.gif" );
        resource.addExclude( "**/excludedir/**" );

        List filtersFile = new ArrayList();
        filtersFile.add( getBasedir() + "/src/test/units-files/maven-resources-filtering/empty-maven-resources-filtering.txt" );

View Full Code Here

Examples of org.apache.maven.model.Resource.addExclude()

        List resources = new ArrayList();
        resources.add( resource );
        resource.setDirectory( unitFilesDir );
        resource.setFiltering( true );
        resource.addExclude( "*.gif" );
        resource.addExclude( "**/excludedir/**" );

        List filtersFile = new ArrayList();
        filtersFile.add( getBasedir() + "/src/test/units-files/maven-resources-filtering/empty-maven-resources-filtering.txt" );

        MavenResourcesExecution mavenResourcesExecution = new MavenResourcesExecution( resources, outputDirectory, mavenProject,
View Full Code Here

Examples of org.apache.maven.model.Resource.addExclude()

        if ( getResourceTargetPath() != null )
        {
            resource.setTargetPath( getResourceTargetPath() );
        }
        resource.setDirectory( absoluteGeneratedPath.getPath() );
        resource.addExclude( "**/*.java" );
        getProject().addResource( resource );
    }

    /**
     * A list of inclusion filters for the compiler.
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.