ant的版本和开发环境的版本要一致吗
推荐于2016-04-10 · 知道合伙人影视综艺行家
关注
展开全部
Xml代码
<javac destdir="${classes-dir-jdk5}" debuglevel="lines,vars,source" debug="true" srcdir="src" source="1.5" target="1.5" encoding="utf-8"
classpathref="nutz-classpath" includeantruntime="false">
</javac>
<javac destdir="${classes-dir-jdk6}" debuglevel="lines,vars,source" debug="true" srcdir="src" source="1.6" target="1.6" encoding="utf-8"
classpathref="nutz-classpath" includeantruntime="false">
</javac>
用高版本的jdk可以编译出低版本兼容的字节码
<javac destdir="${classes-dir-jdk5}" debuglevel="lines,vars,source" debug="true" srcdir="src" source="1.5" target="1.5" encoding="utf-8"
classpathref="nutz-classpath" includeantruntime="false">
</javac>
<javac destdir="${classes-dir-jdk6}" debuglevel="lines,vars,source" debug="true" srcdir="src" source="1.6" target="1.6" encoding="utf-8"
classpathref="nutz-classpath" includeantruntime="false">
</javac>
用高版本的jdk可以编译出低版本兼容的字节码
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询