1 17 18 19 package org.apache.catalina.ant; 20 21 22 import java.net.URLEncoder ; 23 24 import org.apache.tools.ant.BuildException; 25 26 27 35 public class RemoveTask extends AbstractCatalinaTask { 36 37 38 40 41 44 protected String path = null; 45 46 public String getPath() { 47 return (this.path); 48 } 49 50 public void setPath(String path) { 51 this.path = path; 52 } 53 54 55 57 58 63 public void execute() throws BuildException { 64 65 super.execute(); 66 if (path == null) { 67 throw new BuildException 68 ("Must specify 'path' attribute"); 69 } 70 execute("/remove?path=" + URLEncoder.encode(this.path)); 71 72 } 73 74 75 } 76 | Popular Tags |