|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.internal.repository.archives.ArchiveInstaller
public class ArchiveInstaller
Performs the work of installing a given Archive.
| Field Summary | |
|---|---|
static java.lang.String |
ENV_VAR_IGNORE_COMPAT
|
static int |
NUM_MONITOR_INC
|
| Constructor Summary | |
|---|---|
|
ArchiveInstaller()
Generates an ArchiveInstaller that relies on the default FileOp. |
protected |
ArchiveInstaller(IFileOp fileUtils)
Generates an ArchiveInstaller that relies on the given FileOp. |
| Method Summary | |
|---|---|
protected com.android.utils.Pair<java.io.File,java.io.File> |
downloadFile(Archive archive,
java.lang.String osSdkRoot,
DownloadCache cache,
ITaskMonitor monitor,
boolean forceHttp)
Downloads an archive and returns the temp file with it. |
protected boolean |
generateSourceProperties(Archive archive,
java.io.File unzipDestFolder)
Generates a source.properties in the destination folder that contains all the infos relevant to this archive, this package and the source so that we can reload them locally later. |
protected IFileOp |
getFileOp()
Returns current FileOp to use. |
boolean |
install(ArchiveReplacement archiveInfo,
java.lang.String osSdkRoot,
boolean forceHttp,
SdkManager sdkManager,
DownloadCache cache,
ITaskMonitor monitor)
Install this ArchiveReplacements. |
protected boolean |
unzipFolder(ArchiveReplacement archiveInfo,
java.io.File archiveFile,
java.io.File unzipDestFolder,
ITaskMonitor monitor)
Unzips a zip file into the given destination directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ENV_VAR_IGNORE_COMPAT
public static final int NUM_MONITOR_INC
| Constructor Detail |
|---|
public ArchiveInstaller()
ArchiveInstaller that relies on the default FileOp.
protected ArchiveInstaller(IFileOp fileUtils)
ArchiveInstaller that relies on the given FileOp.
fileUtils - An alternate version of FileOp to use for file operations.| Method Detail |
|---|
protected IFileOp getFileOp()
FileOp to use. Never null.
public boolean install(ArchiveReplacement archiveInfo,
java.lang.String osSdkRoot,
boolean forceHttp,
SdkManager sdkManager,
DownloadCache cache,
ITaskMonitor monitor)
ArchiveReplacements.
A "replacement" is composed of the actual new archive to install
(c.f. ArchiveReplacement.getNewArchive() and an optional
archive being replaced (c.f. ArchiveReplacement.getReplaced().
In the case of a new install, the later should be null.
The new archive to install will be skipped if it is incompatible.
protected com.android.utils.Pair<java.io.File,java.io.File> downloadFile(Archive archive,
java.lang.String osSdkRoot,
DownloadCache cache,
ITaskMonitor monitor,
boolean forceHttp)
protected boolean unzipFolder(ArchiveReplacement archiveInfo,
java.io.File archiveFile,
java.io.File unzipDestFolder,
ITaskMonitor monitor)
protected boolean generateSourceProperties(Archive archive,
java.io.File unzipDestFolder)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||