Package org.apache.tools.ant.taskdefs

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


//                    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

        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

    String bundleName = genarateFullExtName(manifest);
    Console.println("Bublish Project "+resource.getName()+" As Bundel To : "+bundleName);
    jar.setDestFile(new File(bundleName));
    // extend set.
    FileSet fileSet=getFileSet(project,resource);
    jar.addFileset(fileSet);
    jar.execute();
    return bundleName;
  }
  /***
   * ����projectΪfile bundel
View Full Code Here

        zip.setSrc(getDeployableFile());
        jar.addZipfileset(zip);
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.tmpDir);
        fileSet.createInclude().setName("weblogic.xml");
        jar.addFileset(fileSet);
        jar.execute();
    }

}
View Full Code Here

      File jarDir = (File) it.next();

      FileSet fs = new FileSet();
      fs.setDir(jarDir);
      jar.addFileset(fs);
    }

    jar.execute();
  }
View Full Code Here

    if (hasSources()) {
      Enumeration<WOFileSet> en = sources.elements();
      while (en.hasMoreElements()) {
                            WOFileSet wofs = (WOFileSet) en.nextElement();
                            if( wofs.testIfCondition() ){
                                jar.addFileset( (FileSet) wofs );
                                hasFileSets = true;
                            }
      }
    }
View Full Code Here

    if (hasClasses()) {
      Enumeration<WOFileSet> en = classes.elements();
      while (en.hasMoreElements()) {
        WOFileSet wofs = (WOFileSet) en.nextElement();
        if( wofs.testIfCondition() ){
          jar.addFileset( (FileSet) wofs );
        }
      }
    }

    if (hasManifest()) {
View Full Code Here

      for (File folder : folders) {
        FileSet srcSet = new FileSet();
        srcSet.setProject(getProject());
        srcSet.setDir(folder);
        srcSet.setIncludes("**/*.java");
        jar.addFileset(srcSet);

        // include source folder resources
        FileSet resSet = new FileSet();
        resSet.setProject(getProject());
        resSet.setDir(folder);
View Full Code Here

        // include source folder resources
        FileSet resSet = new FileSet();
        resSet.setProject(getProject());
        resSet.setDir(folder);
        resSet.setExcludes(excludes);
        jar.addFileset(resSet);
      }

      if (includeResources) {
        for (File dir : build.getConfig().getResourceDirectories(Scope.compile, tag)) {
          FileSet set = new FileSet();
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.