super.checkComponentConfig(comp);
// file must exist (either directory or file)
File theFile = comp.getFile();
if ((theFile == null) || (!theFile.exists())) {
String msg = "The file specified (" + theFile + ") could not be found.";
throw new BuildException(msg, getLocation());
}
// contextroot only makes sense when deploying web components
String theType = comp.getType();
if ((theType != null) && (!theType.equals(TYPE_WEB)) && (comp.contextRootIsSet())) {
String msg = "The \"contextroot\" attribute doesn't apply to "
+ comp.getType() + " files -- it only applies to war files.";
log(msg, Project.MSG_WARN);
}