开发者

Configure mime-types in Subclipse?

To have browsable javadocs in a project hosted at Google-code, I got from here the recipe: set the correct mime-type property (text/html) when Subversion commits HTML pages.

Does anyone knows how to configure that in Subclipse?

This related question gives the pointer to do it in Subversive (there is a Preference tab for that). I couldn't find anything similar for Subclipse.

Someone comments about doing a Team->SetProperty for the whole javadocs dir (recursively), but that is not extension specific (I'd want text/css for stylesheets, for example); and further, I guess, if when new files are created I must remember to do it again...

Is there an a开发者_如何学运维lternative?

Update (2001-06-11): In case somebody is interested: I couldn't find a way to accomplish this, so I ended switching to Subversive.


To configure the MIME types information, edit the following file: Windows 7/Vista: C:\Users[YOUR_USER]\AppData\Roaming\Subversion\config

In the config file, locate the property enable-auto-props and uncomment it. It should be set to yes. Make sure there is no space at the beginning of the line:

enable-auto-props = yes

The last section will be [auto-props] and by default everything will be commented out. Add your required file type with the appropriate config.


It's possible to do part of the work in the shell, by setting mime-type via script.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜