1 11 package org.eclipse.pde.internal.build.ant; 12 13 public class ZipFileSet extends FileSet { 14 15 String prefix; 16 boolean file; 17 String permission; 18 19 29 public ZipFileSet(String dir, boolean file, String defaultexcludes, String includes, String includesfile, String excludes, String excludesfile, String prefix, String casesensitive, String permission) { 30 super(dir, defaultexcludes, includes, includesfile, excludes, excludesfile, casesensitive); 31 this.prefix = prefix; 32 this.file = file; 33 this.permission = permission; 34 } 35 36 protected void print(AntScript script) { 37 script.printTab(); 38 script.print("<zipfileset"); if (file) 40 script.printAttribute("file", dir, false); else 42 script.printAttribute("dir", dir, false); script.printAttribute("defaultexcludes", defaultexcludes, false); script.printAttribute("includes", includes, false); script.printAttribute("includesfile", includesfile, false); script.printAttribute("excludes", excludes, false); script.printAttribute("excludesfile", excludesfile, false); script.printAttribute("casesensitive", casesensitive, false); if (file) 50 script.printAttribute("fullpath", prefix, false); else 52 script.printAttribute("prefix", prefix, false); 54 if (file) 55 script.printAttribute("filemode", permission, false); else 57 script.printAttribute("dirmode", permission, false); 59 script.println("/>"); } 61 } 62 | Popular Tags |