Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] egit: add or add to index?

On 10 Nov 2014, at 08:45, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:

On Mon, Nov 10, 2014 at 6:07 AM, Stephen Wright <stephen.withey.wright@xxxxxxxxx> wrote
 
Should .classpath be ignored?  

AFAIK Eclipse needs it to configure the project's classpath so if you don't share it via the project's git repository
you need a way to generate it after cloning the repository. If you are using Maven to build your project you could
use its eclipse:eclipse goal to generate both .project and .classpath. Similar goals are probably available for IntelliJ and Netbeans.
 
What other files should or should not be included.  I’d like the origin to be able to push files to multiple IDEs, such as IntelliJ and Sublime Text.

I don't know since I don't use Scala, IntelliJ and Sublime Text.

Best practice is to include the .project and .classpath files in your IDE. If you don’t (e.g. you mark them as .gitignore) then next time you do a git clean -fxd or switch branches you’ll end up in a situation where the project no longer opens. Furthermore the existence of these files does not harm the ability to open in multiple IDEs or text editors.

Alex



Back to the top