/** * Adds a zipfileset to include in the META-INF directory. * * @param fs zipfileset to add */ public void addMetainf(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("META-INF/"); super.addFileset(fs); }
/** * add files under WEB-INF/lib/ * @param fs the zip file set to add */ public void addLib(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/lib/"); super.addFileset(fs); }
/** * Adds zipfileset. * * @param fs zipfileset to add */ public void addArchives(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. // Do we need to do this? LH fs.setPrefix("/"); super.addFileset(fs); }
/** * add files under WEB-INF/classes * @param fs the zip file set to add */ public void addClasses(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/classes/"); super.addFileset(fs); }
/** * files to add under WEB-INF; * @param fs the zip file set to add */ public void addWebinf(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/"); super.addFileset(fs); }
/** * add files under lib * @param fs the zip file set to add */ public void addLib(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("lib/"); super.addFileset(fs); }
/** * add files under classes * @param fs the zip file set to add */ public void addClasses(ZipFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("classes/"); super.addFileset(fs); }
task.setDestFile(new File(zipFilePath)); ZipFileSet zipFileSet = new ZipFileSet(); zipFileSet.setPrefix("WEB-INF/lib"); zipFileSet.setDir(new File(libsToAddDir)); task.addFileset(zipFileSet);
ZipFileSet fs = new ZipFileSet(); fs.setDir(source); fs.setPrefix(serverName); fs.setProject(project); zip.addFileset(fs);