Author: mkleint
Date: Thu Nov 22 13:55:58 2007
New Revision: 597504

URL: http://svn.apache.org/viewvc?rev=597504&view=rev
Log:
use getArtifactHandler().getExtension() instead of getTYpe() when creating file 
extension.

Modified:
    
maven/sandbox/trunk/plugins/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java

Modified: 
maven/sandbox/trunk/plugins/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
URL: 
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java?rev=597504&r1=597503&r2=597504&view=diff
==============================================================================
--- 
maven/sandbox/trunk/plugins/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
 (original)
+++ 
maven/sandbox/trunk/plugins/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
 Thu Nov 22 13:55:58 2007
@@ -290,7 +290,7 @@
     {
         Artifact artifact = project.getArtifact();
         final String shadedName =
-            shadedArtifactId + "-" + artifact.getVersion() + "-" + 
shadedClassifierName + "." + artifact.getType();
+            shadedArtifactId + "-" + artifact.getVersion() + "-" + 
shadedClassifierName + "." + artifact.getArtifactHandler().getExtension();
         return new File( outputDirectory, shadedName );
     }
 
@@ -302,11 +302,11 @@
         
         if ( finalName != null )
         {
-            shadedName = finalName + "." + artifact.getType();
+            shadedName = finalName + "." + 
artifact.getArtifactHandler().getExtension();
         }
         else
         {
-            shadedName = shadedArtifactId + "-" + artifact.getVersion() + "." 
+ artifact.getType();
+            shadedName = shadedArtifactId + "-" + artifact.getVersion() + "." 
+ artifact.getArtifactHandler().getExtension();
         }
         
         return new File( outputDirectory, shadedName );


Reply via email to