File tree 1 file changed +9
-6
lines changed
src/main/java/org/codehaus/plexus/archiver/manager
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -100,17 +100,20 @@ public void contextualize( Context context )
100
100
String path = file .getAbsolutePath ();
101
101
102
102
String archiveExt = FileUtils .getExtension ( path ).toLowerCase ( Locale .ENGLISH );
103
-
104
- if ( "gz" .equals ( archiveExt ) || "bz2" .equals ( archiveExt ) )
103
+
104
+ if ( "gz" .equals ( archiveExt )
105
+ || "bz2" .equals ( archiveExt )
106
+ || "xz" .equals ( archiveExt )
107
+ || "snappy" .equals ( archiveExt ) )
105
108
{
106
- String [] tokens = StringUtils .split ( path , "." );
107
-
108
- if ( tokens .length > 2 && "tar" .equals ( tokens [tokens .length -2 ].toLowerCase ( Locale .ENGLISH ) ) )
109
+ String [] tokens = StringUtils .split ( path , "." );
110
+
111
+ if ( tokens .length > 2 && "tar" .equals ( tokens [tokens .length - 2 ].toLowerCase ( Locale .ENGLISH ) ) )
109
112
{
110
113
archiveExt = "tar." + archiveExt ;
111
114
}
112
115
}
113
-
116
+
114
117
return archiveExt ;
115
118
116
119
}
You can’t perform that action at this time.
0 commit comments