运行ant出现错误
D:\>cd ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo
D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo>ant server
Buildfile: D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo\build.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo\build.xml:22: The follo
wing error occurred while executing this line:
D:\ProgramFiles\apache-cxf-2.4.0\samples\common_build.xml:75: Apache CXF require
s Java version 1.5 or higher. You are currently using Java version 1.7.
Total time: 0 seconds
将D:\ProgramFiles\apache-cxf-2.4.0\samples\common_build.xml文件中的
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>
改为
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.7"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>
D:\>cd ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo
D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo>ant server
Buildfile: D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo\build.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
D:\ProgramFiles\apache-cxf-2.4.0\samples\java_first_pojo\build.xml:22: The follo
wing error occurred while executing this line:
D:\ProgramFiles\apache-cxf-2.4.0\samples\common_build.xml:75: Apache CXF require
s Java version 1.5 or higher. You are currently using Java version 1.7.
Total time: 0 seconds
将D:\ProgramFiles\apache-cxf-2.4.0\samples\common_build.xml文件中的
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>
改为
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.7"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>