1 17 18 19 package org.apache.catalina.ant; 20 21 22 import org.apache.tools.ant.BuildException; 23 24 25 33 public class ResourcesTask extends AbstractCatalinaTask { 34 35 36 38 39 43 protected String type = null; 44 45 public String getType() { 46 return (this.type); 47 } 48 49 public void setType(String type) { 50 this.type = type; 51 } 52 53 54 56 57 62 public void execute() throws BuildException { 63 64 super.execute(); 65 if (type != null) { 66 execute("/resources?type=" + type); 67 } else { 68 execute("/resources"); 69 } 70 71 } 72 73 74 } 75 | Popular Tags |