Excluding Certain File Extensions from Being Delivered
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
6 answers
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
On Tue, 09 Mar 2010 19:52:59 +0000, garymu wrote:
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
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
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
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
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
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
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.
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
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 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.
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.
![](http://jazz.net/_images/myphoto/dc0146532e8803b98cfe19b162257312.jpg)
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:
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