Examples of addFileset()


Examples of org.apache.maven.plugin.assembly.model.Assembly.addFileSet()

        assembly.setId( "test" );

        final FileSet fs = new FileSet();
        fs.setDirectory( "/dir" );

        assembly.addFileSet( fs );

        final File basedir = fileManager.createTempDir();

        final List<String> files = writeAssembliesToFile( Collections.singletonList( assembly ), basedir );
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.Component.addFileSet()

        fs = new FileSet();
        fs.setDirectory( "/third-dir" );

        final Component component = new Component();

        component.addFileSet( fs );

        new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly );

        final List<FileSet> fileSets = assembly.getFileSets();
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.Component.addFileSet()

        final Component component = new Component();

        final FileSet fileSet = new FileSet();
        fileSet.setDirectory( "/dir" );

        component.addFileSet( fileSet );

        final File componentFile = fileManager.createTempFile();

        Writer writer = null;
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.Component.addFileSet()

        final Component component = new Component();

        final FileSet fs = new FileSet();
        fs.setDirectory( "/dir" );

        component.addFileSet( fs );

        Writer fw = null;

        try
        {
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.Component.addFileSet()

        final Component component = new Component();

        final FileSet fs = new FileSet();
        fs.setDirectory( "${groupId}-dir" );

        component.addFileSet( fs );

        Writer fw = null;

        try
        {
View Full Code Here

Examples of org.apache.maven.plugin.assembly.model.ModuleSources.addFileSet()

        final FileSet fs = new FileSet();
        fs.setDirectory( "/src" );
        fs.setDirectoryMode( "777" );
        fs.setFileMode( "777" );

        sources.addFileSet( fs );

        macTask.expectGetArchiveBaseDirectory();

        final int mode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) );
        final int[] modes = { -1, -1, mode, mode };
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Chmod.addFileset()

        }
        fs.createInclude().setName("**/*.sh");

        aChmod = this.getSubtaskFactory().getChmod();
        aChmod.setPerm(this.getChmod());
        aChmod.addFileset(fs);
        aChmod.execute();
      }
      finally {
        dir = null;
        fs = null;
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Copy.addFileset()

        for (int i = 0; i < paths.length; i++) {
          FileSet fileSet = new FileSet();
          fileSet.setDir(new File(paths[i]));
          fileSet.setIncludes("**/*");
          fileSet.setExcludes(sourceRootCopyFilter);
          copy.addFileset(fileSet);
        }
        copy.execute();
      }
    }
    if ((null != inpathDirCopyFilter) && (null != inpath)) {
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Copy.addFileset()

            }
            FileSet fileSet = new FileSet();
            fileSet.setDir(inpathDir);
            fileSet.setIncludes("**/*");
            fileSet.setExcludes(inpathDirCopyFilter);
            copy.addFileset(fileSet);
          }
        }
        if (gotDir) {
          copy.execute();
        }
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.Copy.addFileset()

                        Copy cp = new Copy();
                        cp.setProject(new org.apache.tools.ant.Project());
                        cp.setTodir(newRoot);
                        FileSet src = new FileSet();
                        src.setDir(getRootDir());
                        cp.addFileset(src);
                        cp.setOverwrite(true);
                        cp.setPreserveLastModified(true);
                        cp.setFailOnError(false); // keep going even if
                                                    // there's an error
                        cp.execute();
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.