<javac encoding="${java.encoding}" source="${java.source}"
target="${java.target}" debug="true" extdirs="" includeantruntime="false"
destdir="${out.classes.absolute.dir}" bootclasspathref="project.target.class.path"
verbose="${verbose}" classpathref="project.javac.classpath" fork="${need.javac.fork}"
>
<src path="${source.absolute.dir}" />
<src path="${gen.absolute.dir}" />
<compilerarg line="${java.compilerargs}" />
</javac>
这段代码一直报错
下面是异常日志
[javac] '-encoding'
[javac] 'UTF-8'
[javac] '-g'
[javac] '-verbose'
[javac] 'UTF-8'
[javac] '-source'
[javac] '1.6'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] Files to be compiled:
[javac] D:\Develop\EclipseWorks\TestAnt\gen\com\example\testant\BuildConfig.java
[javac] D:\Develop\EclipseWorks\TestAnt\gen\com\example\testant\R.java
[javac] javac: 无效的标志: UTF-8
[javac] 用法: javac <options> <source files>
[javac] -help 用于列出可能的选项
BUILD FAILED
D:\Develop\EclipseWorks\TestAnt\build.xml:786: The following error occurred while executing this line:
D:\Develop\EclipseWorks\TestAnt\build.xml:810: Compile failed; see the compiler error output for details.
target="${java.target}" debug="true" extdirs="" includeantruntime="false"
destdir="${out.classes.absolute.dir}" bootclasspathref="project.target.class.path"
verbose="${verbose}" classpathref="project.javac.classpath" fork="${need.javac.fork}"
>
<src path="${source.absolute.dir}" />
<src path="${gen.absolute.dir}" />
<compilerarg line="${java.compilerargs}" />
</javac>
这段代码一直报错
下面是异常日志
[javac] '-encoding'
[javac] 'UTF-8'
[javac] '-g'
[javac] '-verbose'
[javac] 'UTF-8'
[javac] '-source'
[javac] '1.6'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] Files to be compiled:
[javac] D:\Develop\EclipseWorks\TestAnt\gen\com\example\testant\BuildConfig.java
[javac] D:\Develop\EclipseWorks\TestAnt\gen\com\example\testant\R.java
[javac] javac: 无效的标志: UTF-8
[javac] 用法: javac <options> <source files>
[javac] -help 用于列出可能的选项
BUILD FAILED
D:\Develop\EclipseWorks\TestAnt\build.xml:786: The following error occurred while executing this line:
D:\Develop\EclipseWorks\TestAnt\build.xml:810: Compile failed; see the compiler error output for details.