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

How to Query Source Control for file.

I have been trying to find a way to query Source control and then capture the location and contents of a file, in my project, so that I can use an XML Parser and extract its contents.

I need the following:

- How to connect to the correct Stream
- How to connect to the file in source control
- How to extract its contents as a string or Object so I can parse it.

Thanks !

Dan C.

0 votes



One answer

Permanent link
 Hi Daniel,
you can read the section "Reading" in my blog entry for that:

https://www.ibm.com/developerworks/community/blogs/7685ca43-63d4-4946-89fd-58d379a896d1/entry/how_to_read_and_write_a_file_in_the_repository_directly_without_having_to_create_a_workspace?lang=en

Finding the "correct" stream / querying a stream still has to be implemented by you. In my example the stream and component was known to me.

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
× 10,944
× 1,204

Question asked: Aug 19 '14, 2:39 p.m.

Question was seen: 5,052 times

Last updated: Sep 02 '14, 5:24 a.m.

Confirmation Cancel Confirm