public EObject getPrimaryRootObject() { return ((ApplicationClientFile) getArchive()).getDeploymentDescriptor(); }
public void closeApplicationClientFile() { if (appClientFile != null) appClientFile.close(); } }
protected void validateMainClassInManifest() { if (appClientFile != null && appClientFile.getManifest() != null) { String mainClass = appClientFile.getManifest().getMainClass(); if (mainClass == null || mainClass.length() == 0) { Object target = getManifestTarget(); addError(getBaseName(), APPCLIENT_MAIN_CLASS_ERROR_, new String[0], target); } } }
public void loadDeploymentDescriptor() throws Exception { ApplicationClient client = null; client = (ApplicationClient) primLoadDeploymentDescriptor(); getApplicationClientFile().setDeploymentDescriptor(client); } }
public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) throws ValidationException { try { super.validateInJob(inHelper, inReporter); _reporter.removeAllMessages(this, null); setAppClientFile( (ApplicationClientFile) inHelper.loadModel(APPCLIENT_MODEL_NAME) ); if ( appClientFile != null ) { setAppClientDD( appClientFile.getDeploymentDescriptor() ); validate(); } else { IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_APPCLIENT_INVALID_APPCLIENT_FILE); throw new ValidationException(errorMsg); }// if } catch (ValidationException ex) { throw ex; } catch (Exception e) { IMessage errorMsg = new Message(getBaseName(), IMessage.HIGH_SEVERITY, ERROR_APPCLIENT_VALIDATION_FAILED); throw new ValidationException(errorMsg, e); }// try return status; }
} else if (anArchive.isApplicationClientFile()) { archiveType = CLIENTJARFILE; ApplicationClient appClient = ((ApplicationClientFile) anArchive).getDeploymentDescriptor(); if (appClient.getVersionID() == J2EEVersionConstants.J2EE_1_2_ID) archiveType |= J2EE12;