Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



4 answers

Permanent link
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

1 vote


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 07 '08, 12:09 p.m.

Question was seen: 5,778 times

Last updated: Oct 07 '08, 12:09 p.m.

Confirmation Cancel Confirm