package org.ovirt.engine.build;

import org.apache.maven.artifact.Artifact;

public class Module {
    private String artifactId;
    private String groupId;
    private String moduleName;
    private String moduleSlot;
    private String resourcePath;

    public Module() {
        // Nothing.
    }

    public String getArtifactId() {
        return artifactId;
    }

    public void setArtifactId(String artifactId) {
        this.artifactId = artifactId;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getModuleName() {
        if (moduleName != null) {
            return moduleName;
        }
        return groupId + "." + artifactId;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleSlot() {
        if (moduleSlot != null) {
            return moduleSlot;
        }
        return "main";
    }

    public void setModuleSlot(String moduleSlot) {
        this.moduleSlot = moduleSlot;
    }

    public String getResourcePath() {
        if (resourcePath != null) {
            return resourcePath;
        }
        return artifactId + ".jar";
    }

    public boolean matches(Artifact artifact) {
        return artifact.getArtifactId().equals(artifactId) && artifact.getGroupId().equals(groupId);
    }
}


@@ -216,41 +216,8 @@
 lot;
-%0A    private String resourcePath;
 %0A%0A  
@@ -1113,87 +1113,8 @@
 ) %7B%0A
-        if (resourcePath != null) %7B%0A            return resourcePath;%0A        %7D%0A
     

Remove Module.resourcePath