Examples of ArtifactType


Examples of org.apache.geronimo.deployment.xbeans.ArtifactType

        return buildConfiguration(inPlaceDeployment, configId, configType, jar, configurationStores, artifactResolver, targetConfigurationStore);
    }

    public DeploymentContext buildConfiguration(boolean inPlaceDeployment, Artifact configId, ModuleType moduleType, JarFile jar, Collection configurationStores, ArtifactResolver artifactResolver, ConfigurationStore targetConfigurationStore) throws DeploymentException, IOException {
        ArtifactType type = moduleType.getEnvironment().isSetModuleId() ? moduleType.getEnvironment().getModuleId() : moduleType.getEnvironment().addNewModuleId();
        type.setArtifactId(configId.getArtifactId());
        type.setGroupId(configId.getGroupId());
        type.setType(configId.getType());
        type.setVersion(configId.getVersion().toString());
        Environment environment = EnvironmentBuilder.buildEnvironment(moduleType.getEnvironment(), defaultEnvironment);
        if(!environment.getConfigId().isResolved()) {
            throw new IllegalStateException("Module ID should be fully resolved by now (not "+environment.getConfigId()+")");
        }
        File outfile;
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ArtifactType

            }
        }
    }

    public void parseEnvironment(Environment env) {
        ArtifactType moduleId = environment.addNewModuleId();
        Artifact configId = env.getConfigId();
        moduleId.setGroupId(configId.getGroupId());
        moduleId.setArtifactId(configId.getArtifactId());
        moduleId.setVersion(configId.getVersion().toString());
        moduleId.setType(configId.getType());
        //List<Dependency> deps = env.getDependencies();
        //for (int i = 0; i < deps.size(); i++) {
        //    String depString = deps.get(i).toString();
        //    dependenciesSet.add(depString.substring(6, depString.length() - 1));
        //}
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ArtifactType

        //    dependenciesSet.add(depString.substring(6, depString.length() - 1));
        //}
    }

    public void readEnvironmentData(PortletRequest request) {
        ArtifactType moduleId = environment.getModuleId();
        moduleId.setArtifactId(request.getParameter("artifactId"));
        moduleId.setGroupId(request.getParameter("groupId"));
        moduleId.setVersion(request.getParameter("version"));
        moduleId.setType(request.getParameter("type"));

        String hiddenClassesString = request.getParameter("hiddenClasses");
        if (!isEmpty(hiddenClassesString)) {
            String[] hiddenClasses = getNonEmptyStrings(hiddenClassesString.split(";"));
            if (hiddenClasses.length > 0) {
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ArtifactType

        public EnvironmentJson() {
        }

        public EnvironmentJson(EnvironmentType environment) {
            ArtifactType moduleId = environment.getModuleId();
            groupId = moduleId.getGroupId();
            artifactId = moduleId.getArtifactId();
            version = moduleId.getVersion();
            type = moduleId.getType();
            if (environment.isSetHiddenClasses()) {
                hiddenClasses = mergeStrings(environment.getHiddenClasses().getFilterArray());
            }
            if (environment.isSetNonOverridableClasses()) {
                nonOverridableClasses = mergeStrings(environment.getNonOverridableClasses().getFilterArray());
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ArtifactType

            }
            return str.toString();
        }

        public void save(EnvironmentType environment) {
            ArtifactType moduleId = environment.getModuleId();
            moduleId.setArtifactId(artifactId);

            if (moduleId.isSetGroupId()) {
                moduleId.unsetGroupId();
            }
            if (!isEmpty(groupId)) {
                moduleId.setGroupId(groupId);
            }

            if (moduleId.isSetVersion()) {
                moduleId.unsetVersion();
            }
            if (!isEmpty(version)) {
                moduleId.setVersion(version);
            }

            if (moduleId.isSetType()) {
                moduleId.unsetType();
            }
            if (!isEmpty(type)) {
                moduleId.setType(type);
            }

            if (environment.isSetHiddenClasses()) {
                environment.unsetHiddenClasses();
            }
View Full Code Here

Examples of org.apache.geronimo.system.plugin.model.ArtifactType

        String type = moduleId.getType();
        return new Artifact(groupId, artifactId, version, type);
    }

    public static ArtifactType toArtifactType(Artifact id) {
        ArtifactType artifact = new ArtifactType();
        artifact.setGroupId(id.getGroupId());
        artifact.setArtifactId(id.getArtifactId());
        artifact.setVersion(id.getVersion() == null ? null : id.getVersion().toString());
        artifact.setType(id.getType());
        return artifact;
    }
View Full Code Here

Examples of org.apache.geronimo.system.plugin.model.ArtifactType

                    instance.getSourceRepository().addAll(commonInstance.getSourceRepository());
                }
            }
            metadata.getPluginArtifact().add(instance);

            ArtifactType artifactType = getModuleId();
            ArtifactType existingArtifact = instance.getModuleId();
            if (existingArtifact != null && existingArtifact.getType() != null) {
                artifactType.setType(existingArtifact.getType());
            }
            instance.setModuleId(artifactType);
            addDependencies(instance);
            targetDir.mkdirs();
            File targetFile = new File(targetDir.toURI().resolve(pluginMetadataFileName));
View Full Code Here

Examples of org.apache.geronimo.system.plugin.model.ArtifactType

        String type = moduleId.getType();
        return new Artifact(groupId, artifactId, version, type);
    }

    public static ArtifactType toArtifactType(Artifact id) {
        ArtifactType artifact = new ArtifactType();
        artifact.setGroupId(id.getGroupId());
        artifact.setArtifactId(id.getArtifactId());
        artifact.setVersion(id.getVersion() == null ? null : id.getVersion().toString());
        artifact.setType(id.getType());
        return artifact;
    }
View Full Code Here

Examples of org.apache.geronimo.system.plugin.model.ArtifactType

        String type = moduleId.getType();
        return new Artifact(groupId, artifactId, version, type);
    }

    public static ArtifactType toArtifactType(Artifact id) {
        ArtifactType artifact = new ArtifactType();
        artifact.setGroupId(id.getGroupId());
        artifact.setArtifactId(id.getArtifactId());
        artifact.setVersion(id.getVersion() == null ? null : id.getVersion().toString());
        artifact.setType(id.getType());
        return artifact;
    }
View Full Code Here

Examples of org.apache.geronimo.system.plugin.model.ArtifactType


    private PluginType toPluginType(Artifact artifact) {
        PluginType plugin = new PluginType();
        PluginArtifactType instance = new PluginArtifactType();
        ArtifactType artifactType = PluginInstallerGBean.toArtifactType(artifact);
        instance.setModuleId(artifactType);
        plugin.getPluginArtifact().add(instance);
        return plugin;
    }
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.