提交 4e89b64f authored 作者: Thomas Mueller's avatar Thomas Mueller

Improve build.

上级 b7034974
...@@ -168,9 +168,9 @@ public class Build extends BuildBase { ...@@ -168,9 +168,9 @@ public class Build extends BuildBase {
args = args.plus("-source", "1.5", "-target", "jsr14", "-bootclasspath", bcp); args = args.plus("-source", "1.5", "-target", "jsr14", "-bootclasspath", bcp);
} }
if (debugInfo) { if (debugInfo) {
args = args.plus("-d", "temp", "-sourcepath", "src/main", "-classpath", classpath); args = args.plus("-Xlint:unchecked", "-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
} else { } else {
args = args.plus("-g:none", "-d", "temp", "-sourcepath", "src/main", "-classpath", classpath); args = args.plus("-Xlint:unchecked", "-g:none", "-d", "temp", "-sourcepath", "src/main", "-classpath", classpath);
} }
javac(args, files); javac(args, files);
...@@ -180,7 +180,7 @@ public class Build extends BuildBase { ...@@ -180,7 +180,7 @@ public class Build extends BuildBase {
if (!clientOnly) { if (!clientOnly) {
files = files("src/test"); files = files("src/test");
files.addAll(files("src/tools")); files.addAll(files("src/tools"));
args = args("-d", "temp", "-sourcepath", "src/test" + File.pathSeparator + "src/tools", args = args("-Xlint:unchecked", "-d", "temp", "-sourcepath", "src/test" + File.pathSeparator + "src/tools",
"-classpath", classpath); "-classpath", classpath);
javac(args, files); javac(args, files);
files = files("src/test"). files = files("src/test").
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论