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

Excluding Certain File Extensions from Being Delivered

Can I somehow make it possible for files with certain extensions to be forbidden from being delivered to a stream?

We have had two customers ask about this.

Gary

0 votes



6 answers

Permanent link
On Tue, 09 Mar 2010 19:52:59 +0000, garymu wrote:

Can I somehow make it possible for files with certain extensions to be
forbidden from being delivered to a stream?

We have had two customers ask about this.

Gary

There are no preconditions already written to do this, but it wouldn't be
hard to create one.

That said, I think there is a hack that would basically let you do this.
The "Required Content" precondition has two parameters: A regular
expression which specifies the names of the files it checks and a string
telling it what content is required.

You could configure this precondition to look for files ending in the
extensions you want to prohibit and then set the required content to some
very unlikely string. Something like:
filePattern pattern="*.foo|*.bar"
requiredText="I aM InTenTioNalLY ciRcumvenTINg cOmPany POliCy"

--
Jared Burns
Jazz Process Team

0 votes


Permanent link
Hi,

you can make jazz scm ignore certain files and pattern. E.g. you don't want to version files with a certain extension because they are generated, there is an ignore list. You point to the file go to the Team context menu and select "Add to ignore list". Then you can choose if only the file, only the pattenr in this folder or recursively.
You can specify pattern to be ignored in Preferences>Team>Ignored Resources.

Ignored file will not only be not delivered but not versioned at all, I think.

Hope that was what you are looking for,

Ralph

Can I somehow make it possible for files with certain extensions to be forbidden from being delivered to a stream?

We have had two customers ask about this.

Gary

0 votes


Permanent link
Hi,

you can make jazz scm ignore certain files and pattern. E.g. you don't want to version files with a certain extension because they are generated, there is an ignore list. You point to the file go to the Team context menu and select "Add to ignore list". Then you can choose if only the file, only the pattenr in this folder or recursively.
You can specify pattern to be ignored in Preferences>Team>Ignored Resources.

Ignored file will not only be not delivered but not versioned at all, I think.

Hope that was what you are looking for,

Ralph

Can I somehow make it possible for files with certain extensions to be forbidden from being delivered to a stream?

We have had two customers ask about this.

Gary


Hi Ralph,

I think the 'ignored resources' setting is an Eclipse workspace setting rather than a Jazz setting. To make it work, you'd need each developer to set it.

Admins are looking for a way to set it project-wide or server-wide to prevent developers from adding, for instance, third-party jar files to source control.

0 votes


Permanent link
Hi,

it is true those are on the client side. However, there is a file .jazzignore holding the information at least for some of it in each project. This might be usable to manage project wide settings. At least it would be worthwhile looking into, I guess.

However, the trick Jared posted and I was not aware of might be what you are really looking for.

Ralph

Hi,

you can make jazz scm ignore certain files and pattern. E.g. you don't want to version files with a certain extension because they are generated, there is an ignore list. You point to the file go to the Team context menu and select "Add to ignore list". Then you can choose if only the file, only the pattenr in this folder or recursively.
You can specify pattern to be ignored in Preferences>Team>Ignored Resources.

Ignored file will not only be not delivered but not versioned at all, I think.

Hope that was what you are looking for,

Ralph

Can I somehow make it possible for files with certain extensions to be forbidden from being delivered to a stream?

We have had two customers ask about this.

Gary


Hi Ralph,

I think the 'ignored resources' setting is an Eclipse workspace setting rather than a Jazz setting. To make it work, you'd need each developer to set it.

Admins are looking for a way to set it project-wide or server-wide to prevent developers from adding, for instance, third-party jar files to source control.

0 votes


Permanent link
Hi,

I am trying to get files from the repository and some of them are in the .ignorelist. Is there a way to get them anyway?

Chris

0 votes


Permanent link
Chris,

The Load operation is not affected by the ignore list. The ignore list
just affects what resources are considered for check-in/deliver. So, if
there is a file in the repo that also appears in a .jazzignore file, it
would still be loaded if you choose to load it either directly or by
loading a parent folder. Are you not seeing this behavior?

Michael

scharffc wrote:
Hi,

I am trying to get files from the repository and some of them are in
the .ignorelist. Is there a way to get them anyway?

Chris

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: Mar 09 '10, 2:39 p.m.

Question was seen: 4,519 times

Last updated: Mar 09 '10, 2:39 p.m.

Confirmation Cancel Confirm