lexx.server
Class HashProperties

java.lang.Object
  |
  +--lexx.server.HashProperties

public final class HashProperties
extends java.lang.Object

Hashes all the project files

By using MD5 Hashing, this class gets the hask key for every file in the 'src' and 'lib' directory

Copyright (c) 2002-2003

Since:
20/03/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
HashProperties(java.lang.String text)
           
 
Method Summary
static java.util.List getDifferentFiles(HashProperties oldFiles, HashProperties newFiles)
          Tells you the difference between two hash properties
 java.util.Properties getProperties()
           
static HashProperties hashCurrentProject(java.lang.String projectDir)
          This hashes the files found in 'src' and 'lib' directory
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashProperties

public HashProperties(java.lang.String text)
Parameters:
text - this should be what text produced when you run toString() on hashproperties
Method Detail

getProperties

public final java.util.Properties getProperties()

getDifferentFiles

public static java.util.List getDifferentFiles(HashProperties oldFiles,
                                               HashProperties newFiles)
Tells you the difference between two hash properties

Parameters:
oldFiles - old hash properties
newFiles - new hash properties
Returns:
list of file names that are different from the oldFiles to newFiles

hashCurrentProject

public static HashProperties hashCurrentProject(java.lang.String projectDir)
This hashes the files found in 'src' and 'lib' directory

Parameters:
projectDir - the project directory which contains 'src' and 'lib'
Returns:
hash properties of theses files

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object