You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2006/08/22 06:47:04 UTC
svn commit: r433509 -
/geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java
Author: jdillon
Date: Mon Aug 21 21:47:03 2006
New Revision: 433509
URL: http://svn.apache.org/viewvc?rev=433509&view=rev
Log:
Ooops, forgot I pulled the artifact handling into MojoSupport
Adding missing ArtifactItem
Added:
geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java (with props)
Added: geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java?rev=433509&view=auto
==============================================================================
--- geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java (added)
+++ geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java Mon Aug 21 21:47:03 2006
@@ -0,0 +1,144 @@
+/**
+ * Copyright 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.plugin;
+
+import org.apache.maven.artifact.Artifact;
+
+/**
+ * Represents a Maven-artifact.
+ *
+ * @version $Rev:385659 $ $Date$
+ */
+public class ArtifactItem
+{
+ /**
+ * Group Id of artifact.
+ *
+ * @parameter
+ * @required
+ */
+ private String groupId;
+
+ /**
+ * Name of artifact.
+ *
+ * @parameter
+ * @required
+ */
+ private String artifactId;
+
+ /**
+ * Version of artifact.
+ *
+ * @parameter
+ */
+ private String version = null;
+
+ /**
+ * Type of artifact.
+ *
+ * @parameter
+ * @required
+ */
+ private String type = "jar";
+
+ /**
+ * Classifier for artifact.
+ *
+ * @parameter
+ */
+ private String classifier;
+
+ /**
+ * Artifact Item
+ */
+ private Artifact artifact;
+
+ public String toString() {
+ return groupId + ":" + artifactId + ":" + classifier + ":" + version + ":" + type;
+ }
+
+ /**
+ * @return Returns the artifactId.
+ */
+ public String getArtifactId() {
+ return artifactId;
+ }
+
+ /**
+ * @param artifactId The artifactId to set.
+ */
+ public void setArtifactId(final String artifactId) {
+ this.artifactId = artifactId;
+ }
+
+ /**
+ * @return Returns the groupId.
+ */
+ public String getGroupId() {
+ return groupId;
+ }
+
+ /**
+ * @param groupId The groupId to set.
+ */
+ public void setGroupId(final String groupId) {
+ this.groupId = groupId;
+ }
+
+ /**
+ * @return Returns the type.
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * @param type The type to set.
+ */
+ public void setType(final String type) {
+ this.type = type;
+ }
+
+ /**
+ * @return Returns the version.
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * @param version The version to set.
+ */
+ public void setVersion(final String version) {
+ this.version = version;
+ }
+
+ /**
+ * @return Classifier.
+ */
+ public String getClassifier() {
+ return classifier;
+ }
+
+ /**
+ * @param classifier Classifier.
+ */
+ public void setClassifier(final String classifier) {
+ this.classifier = classifier;
+ }
+}
Propchange: geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: geronimo/genesis/trunk/plugins/plugin-support/src/main/java/org/apache/geronimo/plugin/ArtifactItem.java
------------------------------------------------------------------------------
svn:mime-type = text/plain