public final class Compiler extends Object
-Tdependencyfileoption to output dependency information to in the form:
[source file path] -> [class file path]There may be multiple lines per source file if the file contains multiple top level classes or inner classes. All paths are normalized to be relative to the classfile output directory. Also supports warning customizations including:
-TcolorTo turn on colorized console output.
-TnowarnprefixesPath prefixes to skip warnings for, multiple can be separated with the system path separator and the flag itself can be passed multiple times.
-TnowarnregexRegex to apply to warning messages. Matches are not warned and the flag can be massed multiple times to specify several regexs.
| Modifier and Type | Field and Description |
|---|---|
static String |
COLOR_FLAG |
static String |
DEPENDENCYFILE_FLAG |
static String |
WARN_IGNORE_MESSAGE_REGEX |
static String |
WARN_IGNORE_PATH_PREFIXES |
| Constructor and Description |
|---|
Compiler()
Should not be used; instead invoke
main(java.lang.String[]) directly. |
| Modifier and Type | Method and Description |
|---|---|
static int |
compile(String[] args)
Passes through all args to the system java compiler and tracks classes generated for each
source file.
|
static void |
main(String[] args)
Passes through all args to the system java compiler and tracks classes generated for each
source file.
|
public static final String DEPENDENCYFILE_FLAG
public static final String COLOR_FLAG
public static final String WARN_IGNORE_PATH_PREFIXES
public static final String WARN_IGNORE_MESSAGE_REGEX
public Compiler()
main(java.lang.String[]) directly. Only present to conform to
a common compiler interface idiom expected by jmake.public static int compile(String[] args)
args - The command line arguments.public static void main(String[] args)
args - The command line arguments.