Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-8
-
Fix Version/s: 1.0-rc1
-
Component/s: None
-
Labels:None
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()
We don't need it any more.
${artifact.parent.parent} does a trick