It's all about the answers!

Ask a question

scmtools lastmod command for a file


Tami Takamiya (2011110) | asked Oct 07 '08, 12:09 p.m.
JAZZ DEVELOPER
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



permanent link
John Camelon (1.7k14) | answered Oct 07 '08, 2:37 p.m.
JAZZ DEVELOPER
Tami (Masaaki) Takamiya wrote:
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

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

permanent link
Tami Takamiya (2011110) | answered Oct 07 '08, 3:55 p.m.
JAZZ DEVELOPER
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,
you will see the last modified date as the most recent (top) row.

HTH,
JohnC
SCM Server

permanent link
John Camelon (1.7k14) | answered Oct 07 '08, 4:44 p.m.
JAZZ DEVELOPER
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.

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, you will see the last modified date as the most
recent (top) row.

HTH,
JohnC
SCM Server

permanent link
Tami Takamiya (2011110) | answered Oct 08 '08, 3:51 p.m.
JAZZ DEVELOPER
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
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.

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, you will see the last modified date as the most
recent (top) row.

HTH,
JohnC
SCM Server

Your answer


Register or to post 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.