public EObject getPrimaryRootObject() { return ((RARFile) getArchive()).getDeploymentDescriptor(); }
protected File getFile(String name) { List children = getRarFile().getArchiveFiles(); for (int i = 0; i < children.size(); i++) { try { return ((Archive) children.get(i)).getFile(name); } catch (java.io.FileNotFoundException ex) { continue; } } return getFileFromDependentJar(name); }
public void loadDeploymentDescriptor() throws Exception { Connector connector = null; connector = (Connector) primLoadDeploymentDescriptor(); getRARFile().setDeploymentDescriptor(connector); } }
public IStatus validateInJob(IValidationContext helper, IReporter reporter) throws ValidationException{ super.validateInJob(helper, reporter); // First remove all previous msg. for this project _reporter.removeAllMessages(this, null); // Note the WarHelper will return web.xml with a null object as well try { setRarFile((RARFile) helper.loadModel(CONNECTOR_MODEL_NAME)); if (rarFile != null) { setConnectorDD( rarFile.getDeploymentDescriptor() ); //validateJ2EE14DocType(); } else { IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_INVALID_CONNECTOR_FILE); throw new ValidationException(errorMsg); } } catch (ValidationException ex) { throw ex; } catch (Exception e) { IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_CONNECTOR_VALIDATION_FAILED); throw new ValidationException(errorMsg, e); } return status; }