Groovy打印变更列表描述时遇到问题
我想打印特定流的每个变更列表的变更列表描述,但作为输出得到的描述仅限于某些字符集Groovy打印变更列表描述时遇到问题,groovy,perforce,p4api.net,p4java,Groovy,Perforce,P4api.net,P4java,我想打印特定流的每个变更列表的变更列表描述,但作为输出得到的描述仅限于某些字符集 changelistList.each { IChangelistSummary cl -> println cl.getDescription() } 这是一个有限的CL描述,而不是我在p4V中看到的完整描述 printed by script is - "settings IL customization" But the actual description is "settin
changelistList.each { IChangelistSummary cl ->
println cl.getDescription()
}
这是一个有限的CL描述,而不是我在p4V中看到的完整描述
printed by script is - "settings IL customization"
But the actual description is "settings IL customization Fix_For_TDP XXXXX_Additional Services section expanded on both Provide and Change"
有人能帮忙吗?这里怎么了?我没有得到任何编译错误,脚本执行得很好,只是我没有得到完整的描述,我甚至尝试使用println cl.getDescription().toString(),但它没有帮助您可能需要使用
getChangelist()
获取完整描述的变更列表的方法:上面的变更列表是服务器的输出。getChangelist()@DevOops请仔细查看Sam的答案,并与您的答案进行比较。您不需要IChangelistSummary
,而是需要IChangelist
。在命令行术语中,这是p4 changes
和p4 change-o
之间的区别。您从p4 changes
获取的IChangelistSummary
,只有截断的描述,您需要从p4 change-o
获取的IChangelist
,以查看完整的描述。感谢Sam和Bryan的澄清