首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Groovy打印Changelist描述时遇到的问题

Groovy打印Changelist描述时遇到的问题
EN

Stack Overflow用户
提问于 2018-03-07 22:03:14
回答 1查看 157关注 0票数 0

我希望打印特定流的每个变更列表的Changelist描述,但是我作为输出获得的描述仅限于特定的字符集。

代码语言:javascript
复制
changelistList.each { IChangelistSummary cl ->
  println cl.getDescription() 
    }

这是给出有限的CL描述,而不是我在p4V中看到的完整描述。

代码语言:javascript
复制
  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(),但是没有帮助

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-07 22:55:44

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49161941

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档