/** * These are errors specific to ExtendSelector only. If there are * errors in the custom selector, it should throw a BuildException * when isSelected() is called. */ public void verifySettings() { // Creation is done here rather than in isSelected() because some // containers may do a validation pass before running isSelected(), // but we need to check for the existence of the created class. if (dynselector == null) { selectorCreate(); } if (classname == null || classname.length() < 1) { setError("The classname attribute is required"); } else if (dynselector == null) { setError("Internal Error: The custom selector was not created"); } else if (!(dynselector instanceof ExtendFileSelector) && !parameters.isEmpty()) { setError( "Cannot set parameters on custom selector that does not implement ExtendFileSelector"); } }