Coordinates to Artifact
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 3 Jan 2015 11:44:06 +0000 (11:44 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 3 Jan 2015 11:44:06 +0000 (11:44 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@7619 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.repo/src/main/java/org/argeo/slc/repo/RepoUtils.java

index ec3d17e41e580dd8d3fe27013efa085312225452..4a175ac594ce641569e269bd37c6c201d753e5a3 100644 (file)
@@ -316,6 +316,10 @@ public class RepoUtils implements ArgeoNames, SlcNames {
                                                        .getProperty(SLC_ARTIFACT_CLASSIFIER).getString(),
                                        node.getProperty(SLC_ARTIFACT_EXTENSION).getString(), node
                                                        .getProperty(SLC_ARTIFACT_VERSION).getString());
+               } else if (node.isNodeType(SlcTypes.SLC_MODULE_COORDINATES)) {
+                       return new DefaultArtifact(node.getProperty(SLC_CATEGORY)
+                                       .getString(), node.getProperty(SLC_NAME).getString(),
+                                       "jar", node.getProperty(SLC_VERSION).getString());
                } else {
                        throw new SlcException("Unsupported node type for " + node);
                }