How to see the compiler output when running javac through an Ant task?

前端 未结 5 615
一生所求
一生所求 2021-02-04 00:30

Is there any clearly explained and simple way to see the compiler output when running javac through an Ant task?

Here is my javac Ant tag:

5条回答
  •  渐次进展
    2021-02-04 01:11

    The problem also occurs when the java-compiler itself cannot start. As an example, when the defined heap is too big. The java2 task of Intellij would display the information

    Using external javac compiler
    Compilation arguments:
    ...
    '-J-Xmx1600m'
    ...
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.
    

    and the cause in the build.xml file, in my case:

    
    

提交回复
热议问题