public class Compiler extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DIE
Should the main die in case of an error? Otherwise the main will just return.
|
static String |
ROOT_DOC_ANNOTAION
The ROOT_DOC_ANNOTAION, used to identify the root document.
|
Constructor and Description |
---|
Compiler() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compileLatex(Path sourceDirectory,
String texFile,
Path logFile)
Compile the latex project to a pdf file.
|
static void |
die(String message)
Die.
|
static String |
extractResearchObject(org.apache.taverna.robundle.Bundle bundle,
Path targetDir)
Extract the files of a research object to a directory on the disk.
|
static void |
main(String[] args)
The main method.
|
public static boolean DIE
public static final String ROOT_DOC_ANNOTAION
public static final void die(String message)
message
- the last messagepublic static final String extractResearchObject(org.apache.taverna.robundle.Bundle bundle, Path targetDir) throws IOException
bundle
- the research objecttargetDir
- the directory to write toIOException
- the IO exceptionpublic static final boolean compileLatex(Path sourceDirectory, String texFile, Path logFile) throws IOException, InterruptedException
sourceDirectory
- the directory containing the latex projecttexFile
- the main latex filelogFile
- the log fileIOException
- the IO exceptionInterruptedException
- the interrupted exceptionpublic static void main(String[] args) throws IOException, InterruptedException
args
- the arguments: |args| = 1 && args[0] must be a fileIOException
- the IO exceptionInterruptedException
- the interrupted exceptionCopyright © 2018. All rights reserved.