It's all about the answers!

Ask a question

Setting mime types as server attr, rather than each client


Greg Smith (31126) | asked Jan 16 '12, 3:34 p.m.
Our repository has a lot of files in it of type .xlf .

This is a form of XML -- but right not all of them have the file type of none / binary.

I want to change them to text / CRLF.

2 questions:

- It is possible to mass change these files at one time? The only way I've found to change them it to look at the properties of each file and change them one-by-one.

- Is there a way to set this file type on the server, so that all of the clients on our development team get a value of application/text for these file types? I know how to do it on my own workstation, but not change everyones' at once.

Thanks,
Greg

3 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Jan 16 '12, 11:53 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For the first question (mass changes), you can multi-select the files
you want to change in the Package Explorer, right click on one of the
selected files, and select "Team -> Change_File_Properties". That will
allow you to change the type of all of the selected files in one operation.

For the second question (server-side declaration of mime types), you
could look at work item 139709. If that's the kind of thing you had in
mind, feel free to add a comment indicating your interest/support.

Cheers,
Geoff

On 1/16/2012 3:38 PM, gregsmit wrote:
Our repository has a lot of files in it of type .xlf .

This is a form of XML -- but right not all of them have the file type
of none / binary.

I want to change them to text / CRLF.

2 questions:

- It is possible to mass change these files at one time? The only
way I've found to change them it to look at the properties of each
file and change them one-by-one.

- Is there a way to set this file type on the server, so that all of
the clients on our development team get a value of application/text
for these file types? I know how to do it on my own workstation, but
not change everyones' at once.

Thanks,
Greg

permanent link
Greg Smith (31126) | answered Jan 17 '12, 9:18 a.m.
Hi Geoff,

Thanks -- being able to select all files will be really handy.

One follow up question: If I change all of the files at once to "application/text" and "MSDOS" format, when I check in, will all of the files be changed to the new line feeds?

IE, do I need to actually open the file and save them, for the linefeeds to be changed, or will just taking that action do it for me?

I'm going to be changing about 2000 files at once

Thanks,
Greg

permanent link
Geoffrey Clemm (30.1k33035) | answered Jan 17 '12, 7:23 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
When you apply this operation, it will modify all the files. Just
checkin and deliver your Unresolved changes, and it will deliver all
those changes to the stream in one operation (and one change set).

Cheers,
Geoff

On 1/17/2012 9:23 AM, gregsmit wrote:
Hi Geoff,

Thanks -- being able to select all files will be really handy.

One follow up question: If I change all of the files at once to
"application/text" and "MSDOS" format, when I
check in, will all of the files be changed to the new line feeds?

IE, do I need to actually open the file and save them, for the
linefeeds to be changed, or will just taking that action do it for
me?

I'm going to be changing about 2000 files at once

Thanks,
Greg

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.