ant编译Jmeter目录下的build.xml失败问题

执行ant -buildfile build.xml后控制台日志如下(只有报错的一部分):

BUILD FAILED
/usr/bin/ant/apache-ant-1.10.5/bin/build.xml:21: The following error occurred while executing this line:
/usr/bin/ant/apache-ant-1.10.5/bin/build.xml:32: Fatal error during transformation using /usr/bin/jmeter/apache-jmeter-5.1/extras/jmeter-results-report_21.xsl: Content is not allowed in prolog.; SystemID: file:/usr/bin/jmeter/apache-jmeter-5.1/jmtReport/TestReport201903130339.jtl; Line#: 1; Column#: 1

 

解决方法:

    1、打开Jmeter/bin/jmeter.properties文件,找到 # jmeter.save.saveservice.output_format=csv 

    2、把#去掉

    3、把csv改为xml

    4、再次执行ant -buildfile命令

 

希望能帮到大家。

 

参考链接:

https://rainbow702.iteye.com/blog/2159244

 

你可能感兴趣的:(Jmeter)