Package org.drools.compiler.kproject

Examples of org.drools.compiler.kproject.ReleaseIdImpl


        this.version = version;
    }
   
    ReleaseId getReleaseId() {
        if (releaseId == null) {
            releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        }
        return releaseId;
    }
View Full Code Here


    @Override
    public PomModel parse(String path, InputStream pomStream) {
        PomModel pomModel = new PomModel();
        MavenProject mavenProject = parseMavenPom(pomStream);

        pomModel.setReleaseId(new ReleaseIdImpl(mavenProject.getGroupId(),
                                                mavenProject.getArtifactId(),
                                                mavenProject.getVersion()));
        try {
            MavenProject parentProject = mavenProject.getParent();
            if (parentProject != null) {
                pomModel.setParentReleaseId(new ReleaseIdImpl(parentProject.getGroupId(),
                                                              parentProject.getArtifactId(),
                                                              parentProject.getVersion()));
            }
        } catch (Exception e) {
            // ignore
        }

        // use getArtifacts instead of getDependencies to load transitive dependencies as well
        for (Artifact dep : mavenProject.getArtifacts()) {
            String scope = dep.getScope();
            if ("provided".equals(scope) || "test".equals(scope)) {
                continue;
            }
            pomModel.addDependency(new ReleaseIdImpl(dep.getGroupId(),
                    dep.getArtifactId(),
                    dep.getVersion()));
        }

View Full Code Here

    public String getVersion() {
        return version;
    }

    public ReleaseId getReleaseIdWithoutVersion() {
        return new ReleaseIdImpl(groupId, artifactId, "0");
    }
View Full Code Here

    public ReleaseId getReleaseIdWithoutVersion() {
        return new ReleaseIdImpl(groupId, artifactId, "0");
    }

    public ReleaseId getReleaseId() {
        return new ReleaseIdImpl(groupId, artifactId, version);
    }
View Full Code Here

    public ReleaseId getReleaseId() {
        return new ReleaseIdImpl(groupId, artifactId, version);
    }

    public ReleaseId getArtifactReleaseId() {
        return new ReleaseIdImpl(groupId, artifactId, artifactVersion.toString());
    }
View Full Code Here

    @Override
    public KieModule createKieJar(String groupId, String artifactId, String version,
            String kbaseName,
            String ksessionName,
            List<String> resourceFilePaths ) {
        ReleaseId releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        return internalCreateKieJar(releaseId, kbaseName, ksessionName, resourceFilePaths, null, null);
    }
View Full Code Here

            String kbaseName,
            String ksessionName,
            List<String> bpmnFilePaths,
            List<Class<?>> classes) {
       
        ReleaseId releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        return internalCreateKieJar(releaseId, kbaseName, ksessionName, bpmnFilePaths, classes, null);
    }
View Full Code Here

            String ksessionName,
            List<String> bpmnFilePaths,
            List<Class<?>> classes,
            List<String> dependencies) {
       
        ReleaseId releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        return internalCreateKieJar(releaseId, kbaseName, ksessionName, bpmnFilePaths, classes, dependencies);
    }
View Full Code Here

    }
   
    @Override
    public void createKieJarAndDeployToMaven(String groupId, String artifactId, String version, String kbaseName,
            String ksessionName, List<String> resourceFilePaths) {
        ReleaseId releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        internalCreateAndDeployKjarToMaven(releaseId, kbaseName, ksessionName, resourceFilePaths, null, null);
    }
View Full Code Here

    }

    @Override
    public void createKieJarAndDeployToMaven(String groupId, String artifactId, String version, String kbaseName,
            String ksessionName, List<String> resourceFilePaths, List<Class<?>> classesForKjar) {
        ReleaseId releaseId = new ReleaseIdImpl(groupId, artifactId, version);
        internalCreateAndDeployKjarToMaven(releaseId, kbaseName, ksessionName, resourceFilePaths, classesForKjar, null);
    }
View Full Code Here

TOP

Related Classes of org.drools.compiler.kproject.ReleaseIdImpl

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.