org.jaffa.tools.build
Class ValidatePropertiesFile
java.lang.Object
   org.jaffa.tools.build.ValidatePropertiesFile
org.jaffa.tools.build.ValidatePropertiesFile
- public class ValidatePropertiesFile- extends Object
This will check the input properties file for duplicate entries
 
| 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 | 
 
ValidatePropertiesFile
public ValidatePropertiesFile()
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.