FileDocCategorySizeDatePackage
UndeployTask.javaAPI DocGlassfish v2 API2882Fri May 04 22:32:42 BST 2007org.apache.tools.ant.taskdefs.optional.iplanet

UndeployTask

public class UndeployTask extends ComponentAdmin

Fields Summary
private static final String
UNDEPLOY_COMMAND
Constructors Summary
Methods Summary
protected voidcheckComponentConfig(Component comp)


	      
		super.checkComponentConfig(comp);

		// name must be valid string
		String theName = comp.getName();
		if ((theName == null) || (theName.length() == 0)) {
			String msg = "The component name (\"" + theName + "\") is not valid";
			throw new BuildException(msg, getLocation());
		}
	
protected java.lang.StringgetCommandString(Server server, Component comp)

		StringBuffer cmdString = new StringBuffer(UNDEPLOY_COMMAND);
		cmdString.append(server.getCommandParameters(true));
		if (comp.getType() != null) {
			cmdString.append(" --type ").append(comp.getType());
		}
		cmdString.append(" ").append(comp.getName());

		return cmdString.toString();