org.jaffa.tools.build
Class ValidatePropertiesFile

java.lang.Object
  extended byorg.jaffa.tools.build.ValidatePropertiesFile

public class ValidatePropertiesFile
extends Object

This will check the input properties file for duplicate entries


Constructor Summary
ValidatePropertiesFile()
           
 
Method Summary
static void main(String[] args)
          This will invoke the performValidation method, passing the input arguments.
static Set performValidation(String fileName)
          Check the input properties file for duplicate entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatePropertiesFile

public ValidatePropertiesFile()
Method Detail

performValidation

public static Set performValidation(String fileName)
                             throws IOException,
                                    MalformedURLException
Check the input properties file for duplicate entries. This will return a unique Collection of the duplicate entries, if any exist.

Parameters:
fileName - The properties file, relative to the classpath.
Returns:
a Set containing the duplicate entries, if any
Throws:
IOException - if any IO error occurs.
MalformedURLException - if the input fileName is an invalid URL.

main

public static void main(String[] args)
This will invoke the performValidation method, passing the input arguments.

Parameters:
args - the command line arguments. The first argument will be the PropertiesFileName relative to ClassPath.


Copyright © 2002-2004 JAFFA Project.