有没有一种清晰明了且简单的方法,在Ant任务中运行javac
时查看编译器输出?
这是我的javac
Ant标签:
<javac srcdir="${myproject.src}" destdir="${myproject.class}">
<!-- ... -->
</javac>
这是我收到的唯一错误信息:
/path/to/build.xml:42: Compile failed; see the compiler error output for details.
问题在于我不知道如何查看编译器的详细错误输出...
以下是几个可能有用的配置元素:
- Ant 1.6.5
- Windows 7 x64
- Java 1.6.0_20 x32
- 通过Eclipse启动目标
我知道在Stack Overflow上有一些相关的问题,但是没有一个真正回答了这个简单的问题:
- https://dev59.com/bUjSa4cB1Zd3GeqPIMNr#1275552:我无法添加特定的库,以允许
compile
标签; - https://dev59.com/bUjSa4cB1Zd3GeqPIMNr#1264622:这管理Ant的输出而不是编译器的输出;
- Compile failed; see the compiler error output for details:太模糊了,无法解决任何问题;
- Ant: Compile failed; see the compiler error output for details:没有答案……
- 等等。
[javac] ...
吗? - Sotirios Delimanolis[javac]
,那可能是java.lang.OutOfMemoryError: Java heap space
,在这里查看Stackoverflow。 - hokr