Package org.apache.geronimo.jee.deployment

Examples of org.apache.geronimo.jee.deployment.Artifact


        Empty empty = openejbFactory.createEmpty();
        openEjbJar.setEnforceForeignKeyConstraints(empty);

        // set the Environment
        Environment environment = deploymentFactory.createEnvironment();
        Artifact artifact = deploymentFactory.createArtifact();
        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
View Full Code Here


    String version = cfg != null && hasValue(cfg.getVersion()) ? cfg.getVersion()
        : "1.0";
    String type = cfg != null && hasValue(cfg.getType()) ? cfg.getType()
        : "car";

    Artifact artifact = createArtifact(groupId, artifactId, version, type);
    org.apache.geronimo.jee.deployment.ObjectFactory serviceFactory = new org.apache.geronimo.jee.deployment.ObjectFactory();
  
    Environment env = serviceFactory.createEnvironment();
    env.setModuleId(artifact);
View Full Code Here

 
  public static Artifact createArtifact(String groupId, String artifactId, String version, String type) {
      Trace.tracePoint("Entry", "V21DeploymentPlanCreationOperation.createArtifact", groupId, artifactId, version, type);

    org.apache.geronimo.jee.deployment.ObjectFactory serviceFactory = new org.apache.geronimo.jee.deployment.ObjectFactory();
    Artifact artifact = serviceFactory.createArtifact();

    if (groupId != null)
      artifact.setGroupId(groupId);
    if (artifactId != null)
      artifact.setArtifactId(artifactId);
    if (version != null)
      artifact.setVersion(version);
    artifact.setType(type);
   
      Trace.tracePoint("Exit ", "V21DeploymentPlanCreationOperation.createArtifact", artifact);
    return artifact;
  }
View Full Code Here

        webApp.setSecurityRealmName("securityrealmname");
        webApp.setWorkDir("workdir");

        // set the Environment
        Environment environment = deploymentFactory.createEnvironment();
        Artifact artifact = deploymentFactory.createArtifact();
        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
View Full Code Here

        // hard code everything to come up with a large XML with everything in it
        application.setApplicationName("test-app-name");

        // set the Environment
        Environment environment = deploymentFactory.createEnvironment();
        Artifact artifact = deploymentFactory.createArtifact();
        artifact.setGroupId("org.apache.geronimo.testsuite");
        artifact.setArtifactId("agent-ear");
        artifact.setVersion("2.2-SNAPSHOT");
        artifact.setType("ear");
        environment.setModuleId(artifact);
        Dependencies dependencies = deploymentFactory.createDependencies();
        Dependency dependency = deploymentFactory.createDependency();
        dependency.setGroupId("org.apache.geronimo.testsuite");
        dependency.setArtifactId("agent-ds");
View Full Code Here

            }
        });
    }

    protected String getGroupId() {
        Artifact moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getGroupId() != null)
            return moduleId.getGroupId();
        return "";
    }
View Full Code Here

            return moduleId.getGroupId();
        return "";
    }

    protected String getArtifactId() {
        Artifact moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getArtifactId() != null)
            return moduleId.getArtifactId();
        return "";
    }
View Full Code Here

            return moduleId.getArtifactId();
        return "";
    }

    protected String getVersion() {
        Artifact moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getVersion() != null)
            return moduleId.getVersion();
        return "";
    }
View Full Code Here

            return moduleId.getVersion();
        return "";
    }

    protected String getArtifact() {
        Artifact moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getType() != null)
            return moduleId.getType();
        return "";
    }
View Full Code Here

            sharedLib.setType("car");
            deptype.getDependency().add(sharedLib);
        } else {
            Dependencies deptype = getDependencies(false);
            if (deptype != null) {
                Artifact artifact = getSharedLibDependency(deptype);
                if(artifact != null) {
                    deptype.getDependency().remove(artifact);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.deployment.Artifact

Copyright © 2018 www.massapicom. 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.