Package org.apache.tools.ant.types

Examples of org.apache.tools.ant.types.FileSet.createInclude()


            } else {
                fileset.setDir(base);
                for (Iterator iter = paths.iterator(); iter.hasNext();) {
                    ArtifactDownloadReport a = (ArtifactDownloadReport) iter.next();
                    if (a.getLocalFile() != null) {
                        NameEntry ne = fileset.createInclude();
                        ne.setName(getPath(base, a.getLocalFile()));
                    }
                }
            }
        } catch (Exception ex) {
View Full Code Here


                    }
                    //
                    //   add all the patterns for this libname
                    //
                    for (int j = 0; j < patterns.length; j++) {
                        PatternSet.NameEntry entry = localSet.createInclude();
                        entry.setName(patterns[j]);
                    }
                   int matches = 0;
               //
               //  if there was no specified directory then
View Full Code Here

        for ( Iterator it = depArtifacts.iterator(); it.hasNext(); )
        {
            Artifact artifact = (Artifact) it.next();

            String relativeArtifactPath = localRepository.pathOf( artifact );
            dependenciesFileSet.createInclude().setName( relativeArtifactPath );

            String fileSetName = getPrefix() + artifact.getDependencyConflictId();

            FileSet singleArtifactFileSet = new FileSet();
            singleArtifactFileSet.setProject( getProject() );
View Full Code Here

                copyTask.setOverwrite( resource.isFiltering() );
                FileSet fileSet = new FileSet();
                fileSet.setDir( directory );
                if ( resource.getIncludes().isEmpty() )
                {
                    PatternSet.NameEntry entry = fileSet.createInclude();
                    entry.setName( "**/**" );
                }
                // add includes
                for ( Iterator incIter = resource.getIncludes().iterator(); incIter.hasNext(); )
                {
View Full Code Here

                }
                // add includes
                for ( Iterator incIter = resource.getIncludes().iterator(); incIter.hasNext(); )
                {
                    String include = (String) incIter.next();
                    PatternSet.NameEntry entry = fileSet.createInclude();
                    entry.setName( include );
                }
                // add excludes
                for ( Iterator incIter = resource.getExcludes().iterator(); incIter.hasNext(); )
                {
View Full Code Here

    String[] files = null;
    StringBuffer buf = null;
    try {
      fs = new FileSet();
      fs.setDir(getApplicatonTask().contentsDir());
      includeJar = fs.createInclude();
      includeJar.setName("Resources/Java/**/*.jar");
      includeZip = fs.createInclude();
      includeZip.setName("Resources/Java/**/*.zip");
      ds = fs.getDirectoryScanner(task.getProject());
      files = ds.getIncludedFiles();
View Full Code Here

    try {
      fs = new FileSet();
      fs.setDir(getApplicatonTask().contentsDir());
      includeJar = fs.createInclude();
      includeJar.setName("Resources/Java/**/*.jar");
      includeZip = fs.createInclude();
      includeZip.setName("Resources/Java/**/*.zip");
      ds = fs.getDirectoryScanner(task.getProject());
      files = ds.getIncludedFiles();
      buf = new StringBuffer();

View Full Code Here

        dir = taskDir();
        super.log("chmod scripts in " + dir, Project.MSG_VERBOSE);

        fs = new FileSet();
        fs.setDir(dir);
        fs.createInclude().setName("**/" + name);
        if (startupScriptName != null) {
          fs.createInclude().setName("**/" + startupScriptName);
        }
        fs.createInclude().setName("**/*.sh");

 
View Full Code Here

        fs = new FileSet();
        fs.setDir(dir);
        fs.createInclude().setName("**/" + name);
        if (startupScriptName != null) {
          fs.createInclude().setName("**/" + startupScriptName);
        }
        fs.createInclude().setName("**/*.sh");

        aChmod = this.getSubtaskFactory().getChmod();
        aChmod.setPerm(this.getChmod());
View Full Code Here

        fs.setDir(dir);
        fs.createInclude().setName("**/" + name);
        if (startupScriptName != null) {
          fs.createInclude().setName("**/" + startupScriptName);
        }
        fs.createInclude().setName("**/*.sh");

        aChmod = this.getSubtaskFactory().getChmod();
        aChmod.setPerm(this.getChmod());
        aChmod.addFileset(fs);
        aChmod.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.