How to change Ant compiler to JDK 1.6

前端 未结 5 644
天涯浪人
天涯浪人 2020-12-16 03:52

I need to compile my source code to be compatible with jre 1.6. However, when I attempt to set the compiler attribute of the javac task to be javac1.6, ant will still compil

5条回答
  •  悲&欢浪女
    2020-12-16 04:14

    I think Ant compiler attribute is just to know which properties are supported by the compiler. In javac in general the attribute or option to pass to the compiler is target.

    You should not even need to have a Java 6 compiler installed.

提交回复
热议问题