public class RepackZipEntriesStep extends Object implements Step
Can be used, for instance, to force the resources.arsc file in an Android .apk to be compressed.
Constructor and Description |
---|
RepackZipEntriesStep(ProjectFilesystem filesystem,
Path inputPath,
Path outputPath,
com.google.common.collect.ImmutableSet<String> entries)
Creates a
RepackZipEntriesStep . |
RepackZipEntriesStep(ProjectFilesystem filesystem,
Path inputPath,
Path outputPath,
com.google.common.collect.ImmutableSet<String> entries,
ZipCompressionLevel compressionLevel)
Creates a
RepackZipEntriesStep . |
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
String |
getDescription(ExecutionContext context) |
String |
getShortName() |
public RepackZipEntriesStep(ProjectFilesystem filesystem, Path inputPath, Path outputPath, com.google.common.collect.ImmutableSet<String> entries)
RepackZipEntriesStep
. A temporary directory will be created and used to
extract entries. Entries will be packed with the maximum compression level.inputPath
- input archiveoutputPath
- destination archiveentries
- files to repack (e.g. ImmutableSet.of("resources.arsc")
)public RepackZipEntriesStep(ProjectFilesystem filesystem, Path inputPath, Path outputPath, com.google.common.collect.ImmutableSet<String> entries, ZipCompressionLevel compressionLevel)
RepackZipEntriesStep
.inputPath
- input archiveoutputPath
- destination archiveentries
- files to repack (e.g. ImmutableSet.of("resources.arsc")
)compressionLevel
- the level of compression to usepublic StepExecutionResult execute(ExecutionContext context) throws IOException
execute
in interface Step
IOException
public String getShortName()
getShortName
in interface Step
public String getDescription(ExecutionContext context)
getDescription
in interface Step