You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2003/01/12 18:28:01 UTC
[maven-bug] Created: (MAVEN-195) Artifact enhancement - add method getArtifactSubDirectory()
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-195
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-195
Summary: Artifact enhancement - add method getArtifactSubDirectory()
Type: Improvement
Status: Assigned
Priority: Minor
Time Spent: Unknown
Estimate: 0 minutes
Project: maven
Component: None
Versions:
1.0-beta-8
Assignee: Jason van Zyl
Reporter: Michal Maczka
Created: Sun, 12 Jan 2003 11:28 AM
Updated: Sun, 12 Jan 2003 11:28 AM
Description:
I think that it will be nice to have single place in GenericArtifact class
which hided strategy how the directory where artifact file is kept
is named.
Currently the strategy to name this directory is:
getDependency().getType() + "s"
My proposition is to have:
/**
* Get the directory to place the artifact in
*
* @return The artifact sub directory.
*/
public String getArtifactSubDirectory()
{
// simple version. Later this can be made more
// complicated by providing more adavanced ArtifactFactoryClasse(s)
// but the staregy will be hidden grace to this method
return getType()+"s";
}
This will result in possiblity of rewriting methods like getUrlPath in following way:
/** @see Artifact#getUrlPath */
public String getUrlPath()
{
return "/" + getDependency().getArtifactDirectory()
+ "/" + getArtifactSubDirectory()
+ "/" + getDependency().getArtifact();
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.werken.com/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira