public void createContainingJars() { try { ear.getResources().add( new ResourceDescriptorImpl( war.getDefaultName(), war.getJar() ) ); ear.getResources().add( new ResourceDescriptorImpl( ejbJar.getDefaultName(), ejbJar.getJar() ) ); } catch ( IOException ioe ) { String message = "Error generating ear"; log.warn( message, ioe ); throw new RuntimeException( message ); } }
private void undeployArtifact() throws Exception { if (isDeployToContainerNeeded()) { getCurrentConfiguration().getContainers().undeploy(artifact.getDefaultName()); } if (getCurrentConfiguration().isStandalone() && artifact != null && artifact.isUnit()) { getCurrentConfiguration().getStandaloneContainers().undeploy(); } }
if (!getCurrentConfiguration().getContainers().deploy(jar, artifact.getDefaultName())) this.deploymentException = handleDeploymentFailure(new DeploymentException(artifact.getDefaultName(), new ExpectedException("Expected exception " + artifact.getExpectedDeploymentException() + " but none was thrown")));