Do I need to put the hidden files from the Eclipse project into the repository?

Asked

Viewed 625 times

1

I would first like to know if these of the hidden image files (.somemacoisa) need to go to the repository, since I work on the same project on more than one computer. My other question is whether you have how not to display these files in the eclipse. Thank you for your attention.

Uma captura de tela mostrando os arquivos do projeto do eclipse, como vistos no painel lateral. Há alguns arquivos começados em ponto, tais como .classpath, .project

1 answer

1

These files contain settings like:

  • information on the repository;
  • information about the Eclipse project;
  • project-specific Eclipse settings;
  • configurations used by various tools;
  • user settings.

Repositories shared by a team usually only have files that are useful to the entire team or multiple people on it. The decision whether or not to assign these files should therefore consider avoiding files that contain information pertaining to the developer environment (absolute directory paths, user names, etc.), optional tool settings, or user preferences, unless this information is forcibly standardized for the entire team. Generally, all these files are text files, being possible to inspect them to check if there are some of this "personal" information in them.

It is also considered good practice to avoid files that are automatically generated or that are often unnecessarily modified (for example, a tool could insert the timestamp when she was last executed).

The IDE is often considered a personal choice of the developer, so many teams opt out of versioning specific files from an IDE (in this case, Eclipse).

I have no experience with Java to indicate exactly which files contain what.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.