Package org.apache.tools.ant.taskdefs

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


        {
            Copy copy = (Copy) createAntTask("copy");
            copy.setTodir(theConfDir);
            for (Iterator i = this.confFileSets.iterator(); i.hasNext();)
            {
                copy.addFileset((FileSet) i.next());
            }
            copy.execute();
        }
    }
View Full Code Here


        Copy c = new Copy();
        c.setProject(p);
        c.setTofile(destFile);
        FileSet fs = new FileSet();
        fs.setFile(sourceFile);
        c.addFileset(fs);
        c.execute();
    }
   
    protected static void copyDirectory(File source, File dest) {
        Project p = new Project();
View Full Code Here

        Copy c = new Copy();
        c.setProject(p);
        c.setTodir(dest);
        FileSet fs = new FileSet();
        fs.setDir(source);
        c.addFileset(fs);
        c.execute();
    }
   
    /**
     * Copies all files matching the suffix to the destination directory.
View Full Code Here

        FileSet fs = new FileSet();
        fs.setDir(source);
        if (null != suffix) {
          fs.setIncludes("*" + suffix); // add the wildcard.
        }
        c.addFileset(fs);
        c.execute();
       
        // handle case where no files match; must create empty directory.
        if (!dest.exists()) {
          result = dest.mkdirs();
View Full Code Here

    Console.println("Bublish Project "+resource.getName()+" As Bundel To : "+bundelFile);
    copy.setTodir(bundelFile);
    //FileSet
    FileSet fileSet=getFileSet(project,resource);
    fileSet.setDir(project.getBaseDir());
    copy.addFileset(fileSet);
    //class
    FileSet classSet=new FileSet();
    String outPut=BuiderParameter.getProjectOutput(resource);
    File baseDir=new File(project.getBaseDir(),outPut);
    //���Ƶ�����Ŀ¼
View Full Code Here

    String outPut=BuiderParameter.getProjectOutput(resource);
    File baseDir=new File(project.getBaseDir(),outPut);
    //���Ƶ�����Ŀ¼
    classSet.setDir(baseDir);
    classSet.setIncludes("**/*.*");
    copy.addFileset(classSet);
    copy.execute();
    return bundelName;
  }
  /***
   *
 
View Full Code Here

    // FileSet
    if (source.length > 1) {
      FileSet fileSet = new FileSet();
      fileSet.setDir(new File(source[0]));
      fileSet.setIncludes(source[1]);
      copy.addFileset(fileSet);
    }
    copy.execute();
  }

  /***
 
View Full Code Here

        fileSet.setDir(file.getParentFile());
        fileSet.setIncludes(file.getName() + "/**");
    } else {
        fileSet.setFile(file);
    }
    task.addFileset(fileSet);
      }
      task.execute();
  } catch (BuildException e) {
      throw new IOException(e);
  }
View Full Code Here

        {
            Copy copy = (Copy) createAntTask("copy");
            copy.setTodir(theConfDir);
            for (Iterator i = this.confFileSets.iterator(); i.hasNext();)
            {
                copy.addFileset((FileSet) i.next());
            }
            copy.execute();
        }
    }
View Full Code Here

            anonFs.setIncludes(CLASS_PATTERN);
            if (m_includePattern != null) {
                anonFs.setIncludes(m_includePattern);
            }
            anonFs.setDir(new File(dir));
            copy.addFileset(anonFs);
        }
        copy.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.