1 17 18 19 package org.apache.catalina.ant; 20 21 22 import org.apache.tools.ant.BuildException; 23 24 25 33 public class UndeployTask extends AbstractCatalinaTask { 34 35 36 38 41 protected String path = null; 42 43 public String getPath() { 44 return (this.path); 45 } 46 47 public void setPath(String path) { 48 this.path = path; 49 } 50 51 52 54 55 60 public void execute() throws BuildException { 61 62 super.execute(); 63 if (path == null) { 64 throw new BuildException 65 ("Must specify 'path' attribute"); 66 } 67 68 execute("/undeploy?path=" + this.path); 69 } 70 71 72 } 73 | Popular Tags |