mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
improve plugin installation and backup installed archives
This commit is contained in:
@@ -58,6 +58,7 @@ import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Path;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.zip.ZipEntry;
|
||||
@@ -128,6 +129,19 @@ public final class SmpArchive
|
||||
return create(Resources.asByteSource(archive));
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param archive
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static SmpArchive create(Path archive)
|
||||
{
|
||||
return create(archive.toFile());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user