通過Ant任務運行javac
時,是否有任何清楚說明和簡單的方法來查看編譯器輸出?如何通過Ant任務運行javac時查看編譯器輸出?
這是我javac
螞蟻標籤:
<javac srcdir="${myproject.src}" destdir="${myproject.class}">
<!-- ... -->
</javac>
這裏是唯一的錯誤信息獲取:
/path/to/build.xml:42: Compile failed; see the compiler error output for details.
的問題是,我不知道怎麼看到編譯器錯誤輸出詳情 ...
很少con外形元素,可以幫助:通過Eclipse
- 螞蟻1.6.5
- Windows 7的64位
- 的Java 1.6.0_20 X32
- 啓動目標
我知道有關於SO的一些相關的回答問題,但他們都沒有真正回答這個簡單的問題:
- https://stackoverflow.com/a/1275552/1225328:我無法添加允許
compile
標記的特定庫; - https://stackoverflow.com/a/1264622/1225328:這管理Ant的輸出,而不是編譯器的輸出;
- Compile failed; see the compiler error output for details:太模糊解決任何問題;
- Ant : Compile failed; see the compiler error output for details:沒有答案...
- 等
在出現錯誤消息之前,你沒有看到'[javac] ...'? –
@ sp00m您是否從命令行運行ant時看到錯誤詳細信息。我猜測問題與螞蟻有關。 – Jayan
如果你沒有看到任何'[javac]'它可能是一個'java.lang.OutOfMemoryError:Java堆空間',參見[Stackoverflow](http://stackoverflow.com/questions/5579073/javac-java- lang-outofmemoryerror-when-running-ant-from-eclipse /) – hokr