fedora.utilities
Class MakePatch

java.lang.Object
  extended by fedora.utilities.MakePatch

public class MakePatch
extends java.lang.Object

Makes a patch of Fedora client/server distribution. -----------------------------------------------------------------------------


Constructor Summary
MakePatch(java.io.File originBinDir, java.io.File originSrcDir, java.lang.String originVer, java.io.File targetBinDir, java.io.File targetSrcDir, java.lang.String targetVer, java.io.File destDir, boolean beVerbose, boolean diffPrompt)
           
 
Method Summary
 boolean filesDiffer(java.io.File a, java.io.File b)
           
 java.lang.String getChecksum(java.io.File f)
           
 void getDiffs(java.io.File from, java.io.File to, java.util.ArrayList out, java.lang.String prependPath)
           
static java.lang.String getFedoraVersion(java.io.File dir, boolean binDist)
           
 long getSize(java.io.File f)
           
static void main(java.lang.String[] args)
           
 void makeJar(java.io.File outFile, java.io.File inDir, java.util.List fList)
           
 void print(java.lang.String msg)
           
 void verbose(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakePatch

public MakePatch(java.io.File originBinDir,
                 java.io.File originSrcDir,
                 java.lang.String originVer,
                 java.io.File targetBinDir,
                 java.io.File targetSrcDir,
                 java.lang.String targetVer,
                 java.io.File destDir,
                 boolean beVerbose,
                 boolean diffPrompt)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

makeJar

public void makeJar(java.io.File outFile,
                    java.io.File inDir,
                    java.util.List fList)
             throws java.lang.Exception
Throws:
java.lang.Exception

getSize

public long getSize(java.io.File f)
             throws java.lang.Exception
Throws:
java.lang.Exception

getDiffs

public void getDiffs(java.io.File from,
                     java.io.File to,
                     java.util.ArrayList out,
                     java.lang.String prependPath)
              throws java.lang.Exception
Throws:
java.lang.Exception

filesDiffer

public boolean filesDiffer(java.io.File a,
                           java.io.File b)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getChecksum

public java.lang.String getChecksum(java.io.File f)
                             throws java.lang.Exception
Throws:
java.lang.Exception

verbose

public void verbose(java.lang.String msg)

print

public void print(java.lang.String msg)

getFedoraVersion

public static java.lang.String getFedoraVersion(java.io.File dir,
                                                boolean binDist)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)