no need for the manager - it is stored in the artifact

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-07-26 14:22:13 +00:00
parent 2d666f57a7
commit 3c68ec366c
1 changed files with 1 additions and 9 deletions

View File

@ -112,14 +112,6 @@ public class AssemblyMojo
*/
private File workDirectory;
/**
* Handler to get the file extension matching a given artifactType
*
* @parameter expression="${component.org.apache.maven.artifact.handler.manager.ArtifactHandlerManager}"
* @required
*/
private ArtifactHandlerManager artifactHandlerManager;
public void execute()
throws MojoExecutionException
{
@ -275,7 +267,7 @@ public class AssemblyMojo
// probe for magic word
if ( mat.group( 2 ).trim().equals( "extension" ) )
{
ArtifactHandler artifactHandler = artifactHandlerManager.getArtifactHandler( artifact.getType() );
ArtifactHandler artifactHandler = artifact.getArtifactHandler();
middle = artifactHandler.getExtension();
}
else