Commit e0a3975a authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Extract some constants.

parent 3d8130ec
......@@ -274,11 +274,12 @@ public class JuliacCmdLine {
logger.info("Options:");
logger.info("");
logger.info(" --gensrc <dir> : directory for generated source code (default: target/generated-sources/juliac)");
logger.info(" --genclass <dir> : directory for compiled code (default: target/classes)");
logger.info(" --gensrc <dir> : directory for generated source code (default: "+JuliacConfig.DEFAULT_GEN_DIR_NAME+")");
logger.info(" --genclass <dir> : directory for compiled code (default: "+JuliacConfig.DEFAULT_CLASS_DIR_NAME+")");
logger.info(" --genclassjar <file> : package compiled generate code in file");
logger.info(" --iclassgs <generators> : interceptor class generators");
logger.info(" --icodegs <generators> : interceptor source code generators");
logger.info(" --juliaCfgFiles <files> : comma-separated list of Julia configuration files");
logger.info(" --mixins <dirs> : mixin layers");
logger.info(" --modules <modules> : modules");
logger.info(" --pkgRoot <name> : root package for generated code");
......@@ -286,7 +287,6 @@ public class JuliacCmdLine {
logger.info(" --srcs <dirs> : source files (default: src/main/java)");
logger.info(" --target <version> : the Java bytecode compatibility level (default: "+JDKLevel.getDefaultTargetLevel(jconf.getLogger())+")");
logger.info(" --sourceEncoding <encoding> : the Java source encoding");
logger.info(" --juliaCfgFiles <files> : comma-separated list of Julia configuration files");
logger.info("");
logger.info(" --compilationWarnings : report compilation warnings");
logger.info(" --compileInput : compile input code");
......
......@@ -64,14 +64,14 @@ public class JuliacConfig {
* an absolute path or a path relative to {@link #baseDir}, for a directory
* or a jar file.
*/
private List<String> srcs = new ArrayList<String>();
private List<String> srcs = new ArrayList<>();
/**
* The list of locations containing source files for librairies. A location
* denotes either an absolute path or a path relative to {@link #baseDir},
* for a directory or a jar file.
*/
private List<String> srclibs = new ArrayList<String>();
private List<String> srclibs = new ArrayList<>();
/**
* The root package for generated code.
......@@ -83,7 +83,14 @@ public class JuliacConfig {
* denotes either an absolute path or a path relative to {@link #baseDir}.
* The resulting {@link File} is stored in {@link #genDirName}.
*/
private String genDirName = "target/generated-sources/juliac";
private String genDirName = DEFAULT_GEN_DIR_NAME;
/**
* Default directory name for generated files.
* @since 2.7
*/
final public static String DEFAULT_GEN_DIR_NAME =
"target/generated-sources/juliac";
/**
* The directory where generated files are stored.
......@@ -95,7 +102,13 @@ public class JuliacConfig {
* denotes either an absolute path or a path relative to {@link #baseDir}.
* The resulting {@link File} is stored in {@link #classDir}.
*/
private String classDirName = "target/classes";
private String classDirName = DEFAULT_CLASS_DIR_NAME;
/**
* Default directory name for compiled generated files.
* @since 2.7
*/
final public static String DEFAULT_CLASS_DIR_NAME = "target/classes";
/**
* The directory where generated files are compiled.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment