net.sourceforge.jinit
Class FileConfigurator

java.lang.Object
  extended by net.sourceforge.jinit.FileConfigurator

public class FileConfigurator
extends Object

Creates the necessary files defined in the properties.

Author:
Trevor

Field Summary
static String FILE_BUILD_PREFIX
          FILE_BUILD_PREFIX = "jinit.files.antbuildfile"
static String FILE_PREFIX
          FILE_PREFIX = "jinit.files"
static String FILE_README_PREFIX
          FILE_README_PREFIX = "jinit.files.readme"
 
Method Summary
static void createFiles(Properties props)
          Create the required files defined in the properties.
static boolean getBoolean(String str)
          Convert a string to a boolean, ignoring case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_PREFIX

public static String FILE_PREFIX
FILE_PREFIX = "jinit.files"


FILE_README_PREFIX

public static String FILE_README_PREFIX
FILE_README_PREFIX = "jinit.files.readme"


FILE_BUILD_PREFIX

public static String FILE_BUILD_PREFIX
FILE_BUILD_PREFIX = "jinit.files.antbuildfile"

Method Detail

createFiles

public static void createFiles(Properties props)
                        throws Exception
Create the required files defined in the properties.

Parameters:
props - The properties to use
Throws:
Exception - If the files cannot be created

getBoolean

public static boolean getBoolean(String str)
Convert a string to a boolean, ignoring case. Returns true for "true", "on" and "yes".

Parameters:
str - The String to use.
Returns:
True if str={true, on, yes}, false otherwise


Copyright © 2005 JInit Project. All Rights Reserved.