class MojoUtils
extends java.lang.Object
| Constructor and Description |
|---|
MojoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
checksum(java.io.File file)
Creates the MD5 checksum for the given file.
|
static java.lang.String |
findSourceSubdir(java.io.File sourceDirectory,
java.io.File grammarFile)
Given the source directory File object and the full PATH to a grammar, produce the
path to the named grammar file in relative terms to the
sourceDirectory. |
public static byte[] checksum(java.io.File file)
throws java.io.IOException
file - the file.java.io.IOExceptionpublic static java.lang.String findSourceSubdir(java.io.File sourceDirectory,
java.io.File grammarFile)
sourceDirectory.
This will then allow ANTLR to produce output relative to the base of the output
directory and reflect the input organization of the grammar files.sourceDirectory - The source directory File objectgrammarFileName - The full path to the input grammar file