scmtools lastmod command for a file
Hello,
I am looking for a way to retrieve the last modified time for a file stored in Jazz SCM. I could find that the lastmod command of scmtools and the teamLastModified Ant task can retrieve the last modified time for a folder, but could not find equivalents for an individual file. Are there any way to do that? Thanks. Tami (Masaaki) Takamiya |
4 answers
From IWorkspaceConnection, get the IConfiguration for the component you
are interested in. Then ask that configuration to fetchCompleteItem() on the file in question. HTH, Thanks JohnC SCM Server Tami (Masaaki) Takamiya wrote: Thank you for your comment. |
Tami (Masaaki) Takamiya wrote:
Hello, If you open the history view on that file within that workspace/stream, you will see the last modified date as the most recent (top) row. HTH, JohnC SCM Server |
Thank you for your comment.
I want to use the information in Ant scripts. Can we get the information programmatically? Is there Java API? Tami (Masaaki) Takamiya John Camelon wrote: If you open the history view on that file within that workspace/stream, |
Thank you. I could write a sample code using the logic you suggested
and it worked fine! Tami (Masaaki) Takamiya John Camelon wrote: From IWorkspaceConnection, get the IConfiguration for the component you |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.