Groovy无法打印更改列表说明

时间:2018-03-07 22:03:14

标签: 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 "settings IL customization Fix_For_TDP XXXXX_Additional Services section expanded on both Provide and Change"

任何人都可以帮忙吗?这有什么不对?我没有得到任何编译错误,脚本执行正常,只是我没有得到完整的描述打印我甚至尝试使用println cl.getDescription()。toString()但它没有帮助

1 个答案:

答案 0 :(得分:1)

您可能需要使用getChangelist()方法获取包含完整说明的更改列表:https://www.perforce.com/perforce/r17.2/manuals/p4java-javadoc/com/perforce/p4java/server/delegator/IChangeDelegator.html