[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
