简体   繁体   English

faces-config.xml.jsfdia文件是什么?

[英]What is the faces-config.xml.jsfdia file for?

Some research I did revealed that the faces-config.xml.jsfdia file is generated by eclipse as some kind of diff for the faces-config.xml (source) , that it sometimes causes deployment issues on older JBoss servers (source) . 我做过的一些研究表明, faces-config.xml.jsfdia文件是由eclipse生成的,它是faces-config.xml (源代码)的某种差异,它有时会导致旧JBoss服务器(源代码)上出现部署问题。

And the first couple hundreds of google results also demonstrated that many project actually keep their faces-config.xml.jsfdia under version control. 而前几百个谷歌搜索结果也表明,很多项目实际上都是在版本控制下保持他们的faces-config.xml.jsfdia

Is it oversight? 这是疏忽吗? Is the file actually good for something? 这个文件真的适合某些东西吗? Even without having the faces-config.xml under version control, eclipse has a local history which it could use to restore the config, so why would it keep a separate diff of the settings? 即使没有版本控制下的faces-config.xml ,eclipse也有一个可以用来恢复配置的本地历史记录,那么为什么它会保留设置的单独差异呢? There isn't even a (would be quite useless anyway) "revert config" option, so what's the point? 甚至没有(无论如何都是无用的)“revert config”选项,那么有什么意义呢?

Thank you 谢谢

The faces-config.xml.jsfdia file is the Eclipse-specific file which contains the diagram representation of faces-config.xml . faces-config.xml.jsfdia文件是特定于Eclipse的文件,其中包含faces-config.xml的图表表示。 If you open the faces-config.xml file and switch to Diagram tab (there are three tabs at left bottom of the editor view; Diagram , Tree and Source ), then this file will be auto-created if not present. 如果打开faces-config.xml文件并切换到Diagram选项卡(编辑器视图左下角有三个选项卡; DiagramTreeSource ),那么如果不存在,则会自动创建该文件。 It remembers all diagram drawings which of course can't be remembered in faces-config.xml file itself. 它会记住所有图表绘图,当然这些图表在faces-config.xml文件本身中无法记住。

You need to add this file to the ignore list of your version control program. 您需要将此文件添加到版本控制程序的忽略列表中。 Eg the .hgignore file in project root in case of Mercurial : 例如Mercurial中项目根目录中的.hgignore文件:

syntax: regexp
\.jsfdia$

Or the .gitignore file in case of git : 或者git中.gitignore文件:

*.jsfdia

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM