public class FilterBuildUtilsOperation extends Object implements WarOperation
BuildUtils
class of JIRA, allowing JIRA's build number to be overridden.Modifier and Type | Class and Description |
---|---|
static class |
FilterBuildUtilsOperation.Field |
Constructor and Description |
---|
FilterBuildUtilsOperation(FilterBuildUtilsOperation.Field field,
java.util.function.Function<String,String> valueTransformer) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends FileEntry> |
additionalFiles() |
void |
preprocessEntry(JarEntry entry,
ExceptionalSupplier<? extends InputStream,IOException> is)
Pre-processes a file entry in a WAR file.
|
InputStream |
processEntry(JarEntry entry,
InputStream is)
Process a file entry in a WAR file.
|
public FilterBuildUtilsOperation(FilterBuildUtilsOperation.Field field, java.util.function.Function<String,String> valueTransformer)
public InputStream processEntry(JarEntry entry, InputStream is) throws IOException
WarOperation
processEntry
in interface WarOperation
entry
- the entry in the WAR file.is
- the input stream to the original data.is
to leave entry unmodified or a new input stream that filters original data.
Return null
to not write the entry into the destination WAR file.IOException
- if an I/O error occurs.public void preprocessEntry(JarEntry entry, ExceptionalSupplier<? extends InputStream,IOException> is) throws IOException
WarOperation
preprocessEntry
in interface WarOperation
entry
- the entry in the WAR file to read.is
- provides access to the input stream of the entry. Only consume if needed.IOException
- if an I/O error occurs reading an entry.public Collection<? extends FileEntry> additionalFiles() throws IOException
additionalFiles
in interface WarOperation
IOException
- if an error occurs gathering additional files.Copyright © 2002-2022 Atlassian. All Rights Reserved.