public class DebMaker extends Object
| Constructor and Description |
|---|
DebMaker(Console console,
Collection<DataProducer> dataProducers,
Collection<DataProducer> conffileProducers) |
| Modifier and Type | Method and Description |
|---|---|
BinaryPackageControlFile |
createDeb(Compression compression)
Create the debian archive with from the provided control files and data producers.
|
BinaryPackageControlFile |
createSignedDeb(Compression compression,
org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator)
Create the debian archive with from the provided control files and data producers.
|
void |
makeDeb() |
void |
setChangesIn(File changes) |
void |
setChangesOut(File changes) |
void |
setChangesSave(File changes) |
void |
setCloseReplaceToken(String closeReplaceToken) |
void |
setCompression(String compression) |
void |
setControl(File control) |
void |
setDeb(File deb) |
void |
setDepends(String depends) |
void |
setDescription(String description) |
void |
setHomepage(String homepage) |
void |
setKey(String key) |
void |
setKeyring(File keyring) |
void |
setOpenReplaceToken(String openReplaceToken) |
void |
setPackage(String packageName) |
void |
setPassphrase(String passphrase) |
void |
setResolver(VariableResolver variableResolver) |
void |
setSection(String section) |
void |
setSignPackage(boolean signPackage) |
void |
validate()
Validates the input parameters.
|
public DebMaker(Console console, Collection<DataProducer> dataProducers, Collection<DataProducer> conffileProducers)
public void setDeb(File deb)
public void setControl(File control)
public void setPackage(String packageName)
public void setSection(String section)
public void setDepends(String depends)
public void setDescription(String description)
public void setHomepage(String homepage)
public void setChangesIn(File changes)
public void setChangesOut(File changes)
public void setChangesSave(File changes)
public void setSignPackage(boolean signPackage)
public void setKeyring(File keyring)
public void setKey(String key)
public void setPassphrase(String passphrase)
public void setCompression(String compression)
public void setResolver(VariableResolver variableResolver)
public void validate()
throws PackagingException
PackagingExceptionpublic void makeDeb()
throws PackagingException
PackagingExceptionpublic BinaryPackageControlFile createDeb(Compression compression) throws PackagingException
pControlFiles - pData - deb - compression - the compression method used for the data filePackagingExceptionpublic BinaryPackageControlFile createSignedDeb(Compression compression, org.bouncycastle.openpgp.PGPSignatureGenerator signatureGenerator) throws PackagingException
compression - the compression method used for the data file (gzip, bzip2 or anything else for no compression)signatureGenerator - the signature generatorPackagingExceptionpublic void setOpenReplaceToken(String openReplaceToken)
public void setCloseReplaceToken(String closeReplaceToken)
Copyright © 2014. All rights reserved.