abstract class AbstractLatexProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
executor |
protected TexFileUtils |
fileUtils |
protected LogWrapper |
log |
protected Settings |
settings |
(package private) static String |
SUFFIX_FLS |
(package private) static String |
SUFFIX_LOG |
(package private) static String |
SUFFIX_PDF |
(package private) static String |
SUFFIX_VOID |
| Constructor and Description |
|---|
AbstractLatexProcessor(Settings settings,
CommandExecutor executor,
LogWrapper log,
TexFileUtils fileUtils)
Creates a new
AbstractLatexProcessor instance. |
| Modifier and Type | Method and Description |
|---|---|
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. |
protected boolean |
hasErrsWarns(File logFile,
String pattern)
Logging:
WFU03 cannot close
WAP04 if
logFile is not readable. |
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. |
protected void |
logWarn(File logFile,
String command)
Logging:
WAP03 Running
command emitted warnings. |
protected void |
logWarns(File logFile,
String command,
String pattern)
Logs if a warning occurred running
command
by detecting the warning pattern pattern
in logFile. |
protected boolean |
update(File source,
File target) |
static final String SUFFIX_FLS
static final String SUFFIX_LOG
static final String SUFFIX_PDF
static final String SUFFIX_VOID
protected final Settings settings
protected final CommandExecutor executor
protected final LogWrapper log
protected final TexFileUtils fileUtils
public AbstractLatexProcessor(Settings settings, CommandExecutor executor, LogWrapper log, TexFileUtils fileUtils)
AbstractLatexProcessor instance.protected void logErrs(File logFile, String command, String pattern)
command
by detecting that the log file logFile has not been created
or by detecting the error pattern pattern
in logFile.
Logging:
command failed. For details...
command failed. No log file
logFile is not readable.
logWarns(File, String, String)protected void logWarns(File logFile, String command, String pattern)
command
by detecting the warning pattern pattern
in logFile.
If logFile then an error occurred
making detection of warnings obsolete.
Logging:
command emitted warnings.
logFile is not readable.
logErrs(File, String, String)protected void logWarn(File logFile, String command)
Logging:
WAP03 Running command emitted warnings.
protected boolean hasErrsWarns(File logFile, String pattern)
logFile is not readable.
protected static String[] buildArguments(String options, File file)
options
except the last one which is the name of file.options - the options string. The individual options
are expected to be separated by a single blank.file - the file argumentoptions is not empty,
are the options in options.Copyright © 2016–2018 Simuline Organization (l2r). All rights reserved.