You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2005/10/27 23:15:14 UTC
[jira] Closed: (MAVEN-195) Artifact enhancement - add method getArtifactSubDirectory()
[ http://jira.codehaus.org/browse/MAVEN-195?page=all ]
Arnaud Heritier closed MAVEN-195:
---------------------------------
Fixed a long long time ago !!
> Artifact enhancement - add method getArtifactSubDirectory()
> -----------------------------------------------------------
>
> Key: MAVEN-195
> URL: http://jira.codehaus.org/browse/MAVEN-195
> Project: Maven
> Type: Improvement
> Versions: 1.0-beta-8
> Reporter: Michal Maczka
> Assignee: Jason van Zyl
> Priority: Minor
> Fix For: 1.0-rc1
>
>
> 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();
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org