org.vafer.jdeb
Class Processor

java.lang.Object
  extended by org.vafer.jdeb.Processor

public class Processor
extends Object

The processor does the actual work of building the deb related files. It is been used by the ant task and (later) the maven plugin.

Author:
Torsten Curdt

Constructor Summary
Processor(Console pConsole, VariableResolver pResolver)
           
 
Method Summary
 ChangesDescriptor createChanges(PackageDescriptor pPackageDescriptor, ChangesProvider pChangesProvider, InputStream pRing, String pKey, String pPassphrase, OutputStream pOutput)
          Create changes file based on the provided PackageDescriptor.
 PackageDescriptor createDeb(File[] pControlFiles, DataProducer[] pData, File pOutput, String compression)
          Create the debian archive with from the provided control files and data producers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Processor

public Processor(Console pConsole,
                 VariableResolver pResolver)
Method Detail

createDeb

public PackageDescriptor createDeb(File[] pControlFiles,
                                   DataProducer[] pData,
                                   File pOutput,
                                   String compression)
                            throws PackagingException
Create the debian archive with from the provided control files and data producers.

Parameters:
pControlFiles -
pData -
pOutput -
compression - the compression method used for the data file (gzip, bzip2 or anything else for no compression)
Returns:
PackageDescriptor
Throws:
PackagingException

createChanges

public ChangesDescriptor createChanges(PackageDescriptor pPackageDescriptor,
                                       ChangesProvider pChangesProvider,
                                       InputStream pRing,
                                       String pKey,
                                       String pPassphrase,
                                       OutputStream pOutput)
                                throws IOException,
                                       PackagingException
Create changes file based on the provided PackageDescriptor. If pRing, pKey and pPassphrase are provided the changes file will also be signed. It returns a ChangesDescriptor reflecting the changes

Parameters:
pPackageDescriptor -
pChangesProvider -
pRing -
pKey -
pPassphrase -
pOutput -
Returns:
ChangesDescriptor
Throws:
IOException
PackagingException


Copyright © 2012. All Rights Reserved.