Examples of addInclude()


Examples of org.apache.geronimo.j2ee.deployment.EARContext.addInclude()

                ZipEntry entry = entries.nextElement();
                URI targetPath = new URI(null, entry.getName(), null);
                if (entry.getName().equals("WEB-INF/web.xml")) {
                    moduleContext.addFile(targetPath, module.getOriginalSpecDD());
                } else if (entry.getName().startsWith("WEB-INF/lib") && entry.getName().endsWith(".jar")) {
                    moduleContext.addInclude(targetPath, warFile, entry);
                    manifestcp.add(entry.getName());
                } else {
                    moduleContext.addFile(targetPath, warFile, entry);
                }
            }
View Full Code Here

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

    public void testMatching() {
        DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
        PathFilterSet set1 = new PathFilterSet("/foo");
        filter.add(set1);
        PathFilterSet set2 = new PathFilterSet("/tmp");
        set2.addInclude(new DefaultPathFilter("/tmp(/.*)?"));
        set2.addExclude(new DefaultPathFilter("/tmp/foo(/.*)?"));
        filter.add(set2);
        assertTrue(filter.contains("/foo"));
        assertTrue(filter.contains("/foo/bar"));
        assertTrue(filter.contains("/tmp"));
View Full Code Here

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

    @Test
    public void testMapping2() {
        DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
        PathFilterSet set1 = new PathFilterSet("/tmp/stage");
        set1.addInclude(new DefaultPathFilter("/tmp/stage/products(/.*)?"));
        set1.addExclude(new DefaultPathFilter("/tmp/stage/products/triangle(/.*)?"));
        set1.addExclude(new DefaultPathFilter(".*/foo"));
        filter.add(set1);
        PathMapping map = new SimplePathMapping("/tmp/stage", "/content/geometrixx/en");
        WorkspaceFilter mapped = filter.translate(map);
View Full Code Here

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

    }

    @Test
    public void testRelativePatterns() {
        PathFilterSet set1 = new PathFilterSet("/foo");
        set1.addInclude(new DefaultPathFilter("/foo/.*"));
        set1.addInclude(new DefaultPathFilter("/bar/.*"));
        set1.seal();
        assertFalse(set1.hasOnlyRelativePatterns());

        PathFilterSet set2 = new PathFilterSet("/foo");
View Full Code Here

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

    @Test
    public void testRelativePatterns() {
        PathFilterSet set1 = new PathFilterSet("/foo");
        set1.addInclude(new DefaultPathFilter("/foo/.*"));
        set1.addInclude(new DefaultPathFilter("/bar/.*"));
        set1.seal();
        assertFalse(set1.hasOnlyRelativePatterns());

        PathFilterSet set2 = new PathFilterSet("/foo");
        set2.addInclude(new DefaultPathFilter(".*/foo/.*"));
 
View Full Code Here

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

        set1.addInclude(new DefaultPathFilter("/bar/.*"));
        set1.seal();
        assertFalse(set1.hasOnlyRelativePatterns());

        PathFilterSet set2 = new PathFilterSet("/foo");
        set2.addInclude(new DefaultPathFilter(".*/foo/.*"));
        set2.addInclude(new DefaultPathFilter(".*/bar/.*"));
        set2.seal();
        assertTrue(set2.hasOnlyRelativePatterns());

        PathFilterSet set3 = new PathFilterSet("/foo");
View Full Code Here

Examples of org.apache.maven.archetype.metadata.FileSet.addInclude()

    public void testResourceFiltering()
        throws Exception
    {
        FileSet fileSet = new FileSet();

        fileSet.addInclude( "**/*.java" );

        fileSet.setDirectory( "src/main/java" );
        fileSet.setEncoding( "UTF-8" );
        fileSet.setPackaged( true );
        fileSet.setFiltered( true );
View Full Code Here

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

        {
            FileSet fileSet = new FileSet();
            fileSet.setDirectory(resource.getDirectory());

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

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

            File resourceDirectory = new File(fileSet.getDirectory());
View Full Code Here

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

            } finally {
                out.close();
            }
            Resource resource = new Resource();
            resource.setDirectory(targetDir.getPath());
            resource.addInclude(pluginMetadataFileName);
            getProject().getResources().add(resource);
        } catch (Exception e) {
            throw new MojoExecutionException("Could not create plugin metadata", e);
        }
    }
View Full Code Here

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

            } finally {
                out.close();
            }
            Resource resource = new Resource();
            resource.setDirectory(targetDir.getPath());
            resource.addInclude(pluginMetadataFileName);
            getProject().getResources().add(resource);
            //also attach plugin metadata as an additional artifact, like the pom
            projectHelper.attachArtifact(getProject(), "plugin-metadata", targetFile);
        } catch (Exception e) {
            throw new MojoExecutionException("Could not create plugin metadata", e);
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.