public ArtifactDefinition()

in src/main/java/org/apache/sling/maven/projectsupport/ArtifactDefinition.java [71:87]


    public ArtifactDefinition(final Xpp3Dom config) {
        if ( config.getChild("bundles") != null ) {
            final Xpp3Dom[] children = config.getChild("bundles").getChildren("bundle");
            this.bundles = new ArtifactDefinition[children.length];
            for(int i=0; i<this.bundles.length; i++) {
                this.bundles[i] = new ArtifactDefinition(children[i]);
            }
        } else {
            this.groupId = nodeValue(config, "groupId", null);
            this.artifactId = nodeValue(config, "artifactId", null);
            this.type = nodeValue(config, "type", null);
            this.version = nodeValue(config, "version", null);
            this.classifier = nodeValue(config, "classifier", null);
            this.startLevel = nodeValue(config, "startLevel", 0);
            this.runModes = nodeValue(config, "runModes", null);
        }
    }