Class AbstractLatexProcessor

    • Method Detail

      • logErrs

        protected void logErrs​(File logFile,
                               String command,
                               String pattern)
        Logs if an error occurred running command by detecting that the log file logFile has not been created or by detecting the error pattern pattern in logFile.

        Logging:

        • EAP01 Running command failed. For details...
        • EAP02 Running command failed. No log file
        • WAP04 if logFile is not readable.
        • WFU03 cannot close
        See Also:
        logWarns(File, String, String)
      • logWarns

        protected void logWarns​(File logFile,
                                String command,
                                String pattern)
        Logs if a warning occurred running command by detecting the warning pattern pattern in logFile. If logFile then an error occurred making detection of warnings obsolete.

        Logging:

        • WAP03 Running command emitted warnings.
        • WAP04 if logFile is not readable.
        • WFU03 cannot close
        See Also:
        logErrs(File, String, String)
      • logWarn

        protected void logWarn​(File logFile,
                               String command)

        Logging: WAP03 Running command emitted warnings.

      • hasErrsWarns

        protected boolean hasErrsWarns​(File logFile,
                                       String pattern)
        Logging:
        • WFU03 cannot close
        • WAP04 if logFile is not readable.
      • update

        protected boolean update​(File source,
                                 File target)
      • buildArguments

        protected static String[] buildArguments​(String options,
                                                 File file)
        Returns an array of strings, each entry with a single option given by options except the last one which is the name of file.
        Parameters:
        options - the options string. The individual options are expected to be separated by a single blank.
        file - the file argument
        Returns:
        An array of strings: The 0th entry is the file name, The others, if options is not empty, are the options in options.