Which NetBeans projects files should go into source control?

后端 未结 5 1991
温柔的废话
温柔的废话 2020-12-07 20:21

We normally use Eclipse for a particular Java project, but recently I imported the project into NetBeans to use its dialog building features.

Since I\'ll probably co

5条回答
  •  悲&欢浪女
    2020-12-07 20:38

    It turns out that both Thomas & Petercardona are correct, in a way. NetBeans recommends that you only import source code and/or documentation. Oh and the nbproject folder but not the *nbproject/private** folders.

    From the NetBeans Knowledge Base article on importing Eclipse projects:

    Version Control Considerations

    If the project is checked out of a version control system, the build (or nbbuild), dist (or nbdist), and the nbproject/private folders should not be checked into that version control system.

    If the project is under the CVS, Subversion, or Mercurial version control systems, the appropriate "ignore" files are created or updated for these directories when the project is imported.

    Though nbproject/private should be ignored, nbproject should be checked into the version control system. nbproject contains project metadata that enables others users to open the project in NetBeans without having to import the project first.

提交回复
热议问题