You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/10 16:50:36 UTC
cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/project Dependency.java
jvanzyl 2003/01/10 07:50:36
Modified: src/java/org/apache/maven/project Dependency.java
Log:
o Adding back getArtifactDirectory() which I mistakely nuked.
Revision Changes Path
1.28 +18 -2 jakarta-turbine-maven/src/java/org/apache/maven/project/Dependency.java
Index: Dependency.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Dependency.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- Dependency.java 31 Dec 2002 07:02:58 -0000 1.27
+++ Dependency.java 10 Jan 2003 15:50:36 -0000 1.28
@@ -159,7 +159,23 @@
*/
public String getGroupId()
{
- return groupId != null ? groupId : getProjectId();
+ return groupId;
+ }
+
+ /**
+ * Get the directory to place the artifact in. If the groupId has been
+ * set then use that, otherwise use the id.
+ *
+ * @return The artifact directory.
+ */
+ public String getArtifactDirectory()
+ {
+ if ( getGroupId() != null )
+ {
+ return getGroupId();
+ }
+
+ return getId();
}
/**