public abstract class ArchiveTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
configsDir |
protected boolean |
verbose |
| Modifier | Constructor and Description |
|---|---|
protected |
ArchiveTransformer(File configsDir,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransformIndividualClassFile() |
protected ResourceTransformer |
newResourceTransformer() |
boolean |
transform(File inJarFile,
File outJarFile)
Attempts to apply configured transformations to given
source archive and produces new
target archive. |
protected final File configsDir
protected final boolean verbose
protected ArchiveTransformer(File configsDir, boolean verbose)
public boolean transform(File inJarFile, File outJarFile) throws IOException
source archive and produces new
target archive.inJarFile - archive file to be consumed (can be exploded)outJarFile - archive file to be produced (will be exploded if source was exploded)true if transformations were applied to archive, false if source and target
contents are identical.IOException - if some I/O error occursprotected ResourceTransformer newResourceTransformer() throws IOException
IOExceptionpublic boolean canTransformIndividualClassFile()
Copyright © 2021 JBoss by Red Hat. All rights reserved.