1 16 17 package org.apache.taglibs.gnat; 18 19 import org.apache.taglibs.gnat.util.*; 20 import javax.servlet.ServletContext ; 21 import javax.servlet.jsp.*; 22 import javax.servlet.jsp.tagext.*; 23 import java.io.*; 24 import java.util.*; 25 26 public class moveTag extends BodyTagSupport 27 { 28 private String file = ""; 30 private String todir = ""; 31 private String tofile = ""; 32 private boolean filtering = false; 33 private boolean flatten = false; 34 private boolean overwrite = true; 35 private boolean includeEmptyDirs = true; 36 private ResourceBundle gnatRB = ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatTagStrings"); 37 private ResourceBundle gnatERB = ListResourceBundle.getBundle("org.apache.taglibs.gnat.util.GnatExceptionStrings"); 38 39 public void setFile(String file) { 40 this.file = file; 41 } 42 43 public void setFiltering(boolean filtering) { 44 this.filtering = filtering; 45 } 46 47 public void setFlatten(boolean flatten) { 48 this.flatten = flatten; 49 } 50 51 public void setTodir(String todir) { 52 this.todir = todir; 53 } 54 55 public void setTofile(String tofile) { 56 this.tofile = tofile; 57 } 58 59 public void setOverwrite(boolean overwrite) { 60 this.overwrite = overwrite; 61 } 62 63 public void setIncludeEmptyDirs(boolean includeEmptyDirs) { 64 this.includeEmptyDirs = includeEmptyDirs; 65 } 66 67 68 public int doStartTag() throws JspException 69 { 70 return SKIP_BODY; 71 } 72 73 public int doEndTag() throws JspException 74 { 75 return EVAL_PAGE; 76 } 77 78 public String getFile() { return file; } 79 public boolean getFiltering() { return filtering; } 80 public boolean getFlatten() { return flatten; } 81 public String getTodir() { return todir; } 82 public String getTofile() { return tofile; } 83 public boolean getIncludeEmptyDirs() { return includeEmptyDirs; } 84 public boolean getOverwrite() { return overwrite; } 85 } 86 | Popular Tags |