Examples of Deployment


Examples of org.camunda.bpm.engine.test.Deployment

    try {
      method = testClass.getDeclaredMethod(methodName, (Class<?>[])null);
    } catch (Exception e) {
      return null;
    }
    Deployment deploymentAnnotation = method.getAnnotation(Deployment.class);
    if (deploymentAnnotation != null) {
      log.fine("annotation @Deployment creates deployment for "+ClassNameUtil.getClassNameWithoutPackage(testClass)+"."+methodName);
      String[] resources = deploymentAnnotation.resources();
      if (resources.length == 0) {
        String name = method.getName();
        String resource = getBpmnProcessDefinitionResource(testClass, name);
        resources = new String[]{resource};
      }
View Full Code Here

Examples of org.exist.repo.Deployment

      throw new XPathException(this, EXPathErrorCode.EXPDY003, "Permission denied. You need to be a member " +
          "of the dba group to use repo:deploy/undeploy");
   
    String pkgName = args[0].getStringValue();
        try {
            Deployment deployment = new Deployment(context.getBroker());
            String target;
            if (isCalledAs("deploy")) {
                String userTarget = null;
                if (getArgumentCount() == 2)
                    userTarget = args[1].getStringValue();
                target = deployment.deploy(pkgName, context.getRepository(), userTarget);
            } else if (isCalledAs("install-and-deploy")) {
                String version = null;
                String repoURI;
                if (getArgumentCount() == 3) {
                    version = args[1].getStringValue();
                    repoURI = args[2].getStringValue();
                } else {
                    repoURI = args[1].getStringValue();
                }
                target = installAndDeploy(pkgName, version, repoURI);
            } else if (isCalledAs("install-and-deploy-from-db")) {
                String repoURI = null;
                if (getArgumentCount() == 2)
                    repoURI = args[1].getStringValue();
                target = installAndDeployFromDb(pkgName, repoURI);
            } else
                target = deployment.undeploy(pkgName, context.getRepository());
            return statusReport(target);
        } catch (PackageException e) {
            throw new XPathException(this, EXPathErrorCode.EXPDY001, e.getMessage());
        } catch (IOException e) {
            throw new XPathException(this, ErrorCodes.FOER0000, "Caught IO error while deploying expath archive");
View Full Code Here

Examples of org.glassfish.internal.deployment.Deployment

                }
                params.target = _ejbContainerUtil.getServerEnvironment().getInstanceName();

                ActionReport report = _ejbContainerUtil.getServices().
                        getService(ActionReport.class, "plain");
                Deployment deployment = _ejbContainerUtil.getDeployment();
                ExtendedDeploymentContext dc = deployment.getBuilder(
                        logger, params, report).source(app).build();
                dc.addTransientAppMetaData(DatabaseConstants.JTA_DATASOURCE_JNDI_NAME_OVERRIDE, resourceName);
                Properties appProps = dc.getAppProps();
                appProps.setProperty(ServerTags.OBJECT_TYPE, DeploymentProperties.SYSTEM_ALL);

                deployment.deploy(dc);

                if (report.getActionExitCode() != ActionReport.ExitCode.SUCCESS) {
                    logger.log (Level.WARNING, "Cannot deploy or load EJBTimerService: ",
                            report.getFailureCause());
                } else {
View Full Code Here

Examples of org.jboss.arquillian.api.Deployment

   private DeploymentDescription generateDeployment(Method deploymentMethod)
   {
      TargetDescription target = generateTarget(deploymentMethod);
      ProtocolDescription protocol = generateProtocol(deploymentMethod);
     
      Deployment deploymentAnnotation = deploymentMethod.getAnnotation(Deployment.class);
      DeploymentDescription deployment = null;
      if(Archive.class.isAssignableFrom(deploymentMethod.getReturnType()))
      {
         deployment = new DeploymentDescription(deploymentAnnotation.name(), invoke(Archive.class, deploymentMethod));
         deployment.shouldBeTestable(deploymentAnnotation.testable());
      }
      else if(Descriptor.class.isAssignableFrom(deploymentMethod.getReturnType()))
      {
         deployment = new DeploymentDescription(deploymentAnnotation.name(), invoke(Descriptor.class, deploymentMethod));
         //deployment.shouldBeTestable(false);
      }
      deployment.shouldBeManaged(deploymentAnnotation.managed());
      deployment.setOrder(deploymentAnnotation.order());
      if(target != null)
      {
         deployment.setTarget(target);
      }
      if(protocol != null)
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.Deployment

   @Override
   public ProtocolMetaData deploy(final Archive<?> archive) throws DeploymentException
   {

      Deployment deployment = deploymentInstance.get();
      final AddonId addonToDeploy = getAddonEntry(deployment);

      if (undeploying)
      {
         System.out.println("Cleaning test runtime.");
View Full Code Here

Examples of org.jboss.arquillian.container.test.api.Deployment

        if (testClass.getAnnotation(RunAsClient.class) != null) {

            // non-warp class
            if (testClass.getAnnotation(WarpTest.class) == null) {
                Method method = testClass.getMethod(Deployment.class);
                Deployment deployment = method.getAnnotation(Deployment.class);

                // deployment is testable
                if (deployment.testable()) {
                    throw new IllegalArgumentException("Non-Warp test that is marked as @RunAsClient should not be testable: "
                            + testClass.getJavaClass().getName());
                }
            }
        }
View Full Code Here

Examples of org.jboss.as.plugin.deployment.Deployment

            // Deploy the application
            server.checkServerState();
            if (server.isRunning()) {
                log.info(String.format("Deploying application '%s'%n", deploymentFile.getName()));
                final ModelControllerClient client = server.getClient();
                final Deployment deployment = StandaloneDeployment.create(client, deploymentFile, deploymentName, getType(), null, null);
                switch (executeDeployment(client, deployment)) {
                    case REQUIRES_RESTART: {
                        client.execute(ServerOperations.createOperation(ServerOperations.RELOAD));
                        break;
                    }
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

      VirtualFile contextFile = VFS.getChild(contextName);
     
      // Create the deployment
      VirtualFile vf = contextFile.getChild("spaces.ear");
      assertNotNull(vf);
      Deployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(vf);

      // Make sure we can deploy/undeploy it
      invoke(getDeployerName(), "deploy", new Object[]{ deployment }, new String[] { Deployment.class.getName() });
      invoke(getDeployerName(), "checkIncompleteDeployments", null, null);
      invoke(getDeployerName(), "undeploy", new Object[]{ deployment }, new String[] { Deployment.class.getName() });
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

   {
      if(deployment == null)
      {
         throw new IllegalArgumentException("null profile deployment");
      }
      Deployment d = createDeployment(key, deployment);
      deployer.addDeployment(d);
   }
View Full Code Here

Examples of org.jboss.deployers.client.spi.Deployment

   private VDFDeploymentBuilder() { }
  
   public Deployment createDeployment(ProfileKey key, ProfileDeployment profileDeployment) throws Exception
   {
      Deployment d = null;
      if(profileDeployment.getRoot() == null)
      {
         d = new AbstractDeployment(profileDeployment.getName());
      }
      else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.