Examples of addFileset()


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

        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

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

    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

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

    protected void removeGeneratedFiles(final String installedDirectory, final String removePattern) {
        Delete deleteTask = (Delete) antProject.createTask("delete");

        FileSet fileSet = AntUtils.createFileset(installedDirectory, removePattern, new ArrayList());
        log("Removing generated files (pattern: " + removePattern + ")...");
        deleteTask.addFileset(fileSet);
        deleteTask.execute();
    }

    private String pojoLowerCase(String name) {
        return name.substring(0, 1).toLowerCase() + name.substring(1);
View Full Code Here

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

        // Clean up stuff previously put in the temporary directory
        Delete delete = (Delete) createAntTask("delete");
        FileSet fileSet = new FileSet();
        fileSet.setDir(theTmpDir);
        fileSet.createInclude().setName("**/*");
        delete.addFileset(fileSet);
        delete.setIncludeEmptyDirs(true);
        delete.setFailOnError(false);
        delete.execute();
    }
   
View Full Code Here

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

            // Clean up stuff previously put in the temporary directory
            Delete delete = (Delete) createAntTask("delete");
            FileSet fileSet = new FileSet();
            fileSet.setDir(tmpDir);
            fileSet.createInclude().setName("**/*");
            delete.addFileset(fileSet);
            delete.setIncludeEmptyDirs(true);
            delete.execute();
        }
        // make sure we're returning a directory
        if (!tmpDir.isDirectory())
View Full Code Here

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

            tmpPluginXmlFile = new File(tmpPluginDir, "plugin.xml");
            FileUtils.newFileUtils().copyFile(descriptor, tmpPluginXmlFile);
            FileSet fs = new FileSet();
            fs.setDir(tmpPluginDir);
            fs.createInclude().setName("plugin.xml");
            jarTask.addFileset(fs);
        } catch (IOException ex) {
            throw new BuildException(ex);
        }

        // Create manifest
View Full Code Here

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

//                    pluginJars.add(piJar);
                    final File f = new File(piJar.getPluginUrl().getPath());
                    final FileSet fs = new FileSet();
                    fs.setDir(f.getParentFile());
                    fs.setIncludes(f.getName());
                    jarTask.addFileset(fs);
                }
            }

            /*
             * for (Iterator i = piRegistry.getDescriptorIterator();
View Full Code Here

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

        Jar jar = new Jar();
        jar.bindToOwner(this);
        jar.addConfiguredManifest(mf);
        for (FileSet fs : filesets)
            jar.addFileset(fs);

        tmpFile.delete();
        jar.setDestFile(tmpFile);
        jar.execute();
    }
View Full Code Here

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

      for (String path : paths){
        FileSet fileset = new FileSet();
        fileset.setProject(antProject);
        fileset.setDir(new File(ProjectUtils.getFilePath(project, path)));
        fileset.setIncludes("**/*.java");
        javadoc.addFileset(fileset);
      }
    }else{
      paths = StringUtils.split(files);
      for (String path : paths){
        javadoc.addSource(
View Full Code Here

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

                             final String inPattern) {
        Move moveTask = (Move) antProject.createTask("move");

        FileSet fileSet = AntUtils.createFileset(inSourceDirectory, inPattern, new ArrayList());
        moveTask.setTodir(new File(inDestinationDirectory));
        moveTask.addFileset(fileSet);
        moveTask.execute();
    }
    /**
     * This method will movie files from the source directory to the destination directory based on
     * the pattern.
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.