Java – which eclipse files are excluded from subversion repo

As a development team, we always like subversion and solar eclipse. We checked everything and everything was fine Until we have a new hire who uses anything but a solar eclipse (RAD) His rad visa is currently polluting SVN repo to detain our eclipse checkout to complete the construction

>I have learned that I should delete the file and add it to SVN global ignore I want to know, is it a way to make this project extensive, rather than let everyone fix their own SVN configuration? What do you want to add to your root Svn directory? > I am also looking for a list or even script to delete eclipse files and directories from SVN repo (. Project. Settings. Classpath?. externaltoolbuilders. Springbeans) without risking completely destroying the workspace. > I am also trying to find the fastest way to restore the workspace. As we are using Maven software project management, I can do MVN solar eclipse: the solar eclipse is in the root workspace, but how to find what the correct WST settings are, and the fastest way is to restore the path settings in eclipse?

I think many people will face the same use case, so they have the same problem, but Google hasn't found anything yet I hope someone can point me in the right direction

Solution

If you want to use a language independent code repository, the problem is not which files to exclude and which files to include This means that in a language agnostic repo, it should only be the files required by the project:

>Source file, library, property file XML configuration,... > build something, that is Class files, files

You should exclude:

> . Project – this is eclipse's project specific configuration > Settings folder – this is eclipse's project specific configuration > Classpath – this is also a concrete example of eclipse

In eclipse, there is a "global" ignore list for files shared to the repository through SVN, CVs, etc You can find it here:

Window > Preferences > Team > Ignored Resources

If you're looking for something outside eclipse, try using the global ignore configuration in your local subversion configuration Add it to ~ / Subversion / config file

global-ignores = build *.mode* *.pbxuser *~.nib .DS_Store *~

Note that if you exclude eclipse configuration from feedback, you must more specifically set up the project after checkout

However, as you said, you use maven, which should not actually cause you too many problems If the POM of Maven project The XML file configuration is correct and complete. You can easily import the project from SVN through "import as Maven project" – eclipse will import all the correct configurations for you (for this, you need the m2eclipse Maven plug-in, but I guess you will use something like this? Anyway, here is the link: http://m2eclipse.sonatype.org/sites/m2e )

About your question about a script clean-up repo: I don't know such a thing now, I will be very careful about this Sounds like a lot of things can be very wrong

The above is the Java - which eclipse files are excluded from subversion repo collected and sorted out by programming house for you. I hope this article can help you solve the program development problems encountered by Java - which eclipse files are excluded from subversion repo.

If you think the content of the programming home website is good, you are welcome to recommend the programming home website to programmers and friends.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>