Class OptionsFileUtil

  • All Implemented Interfaces:
    ConfigConstants

    public class OptionsFileUtil
    extends Object
    implements ConfigConstants
    Provides utility functions to read in options file. An options file is a regular text file with each line specifying a separate option. An option may continue into a following line by using a back-slash separator character at the end of the non-terminating line. Options file also allow empty lines and comment lines which are disregarded. Comment lines must begin with the hash character as the first character. Leading and trailing white-spaces are ignored for any options read from the Options file.
    • Field Detail

      • LOG

        public static final org.apache.commons.logging.Log LOG
    • Method Detail

      • expandArguments

        public static String[] expandArguments​(String[] args)
                                        throws Exception
        Expands any options file that may be present in the given set of arguments.
        Parameters:
        args - the given arguments
        Returns:
        a new string array that contains the expanded arguments.
        Throws:
        Exception