Eclipse: excluding jar files from Subversion - eclipse

I have created a new project within MyEclipse and scafolded a Spring framework.
When I Team Share to Subversion using Subclipse it is uploading all the .jar files, not just my code. With Spring that means a lot of overhead.
I cant find a way from within the ->Team Share dialogue to exclude .jar files.
This is the first time this has happend - other Subclipse projects seem to have behaved as I hope.
How do you set the settings to exclude .jar? And how can I make that the default behaviour for future projects?

I don't know a thing about Eclipse or how it interacts with subversion, but with the subversion client installed on your path, the the typical way to ignore files is to use the propset command.
svn propset svn:ignore *.jar
SVN Manual - svn:ignore

This should answer you question: Subclipse svn:ignore
You should add the "Wildcard extension" *.jar to the svn:ignore properties.

Related

eclipse intellij can use Github for same project

Is it possible to create one project in GitHub, and two teams who are using different IDE like Eclipse and Intellij can configure project with github and can work simultaneously on same project?
I have searched it but not able to find proper solution for it.
Yes, you even can version:
your .project and .classpath (eclipse)
and your .idea folder (intellij)
And both set of IDE-specific files would ignore each others: one could use the Eclipse settings without realizing there is an IntelliJ IDEA project, and vice-versa.
Yes this is possible.
Most IDE's do create some specific project folders, where the IDE does store Data for your project. As example local build paths and so on.
Git provides the .gitignore file.
In this file you can specify which folders and files git will ignore. As example IDE Based files and folders. Due that every developer can his favourite IDE and no local IDE based files will be in the Git Porject itself.
Most IDE's will update or crate the .gitignore File automatic when they do find an git folder in the project.
What files you have to add to the .gitignore file is differs from IDE to IDE. It also depends on what Programm language your Project is written in.
Here you can find more about the gitignore file:
How do I ignore files in a directory in Git?
http://www.bmchild.com/2012/06/git-ignore-for-java-eclipse-project.html
Yes you can, there no limits on IDEs and number of team members, check this for Eclipse
and this for IntelliJ

Use eclipse as svn client

Running OSX.
I have used eclipse for years as a Java developer. I am now messing with all kinds of new technologies but still find myself using svn (don't ask its not my descision). Anyways I don't really like SVN command line as I find it almost impossible to sort through merge conflicts.
With that I was thinking about using eclipse (w/ subclipse plugin) as my SVN client whenever I need to do SVN type things. The one problem that I have found is that eclipse loves to create a .project file. I would never want to check this in as no one else is using eclipse. I know that I can add it to svn:ignore, but that has to actually commit that ignore to SVN as well, which I do not want to do either.
Anyway to create eclipse projects without the .project file. I know sounds dumb because I am sure that eclipse needs the .project file for all its projects. Would be nice just to create an SVN project (not Java project) and have eclipse leave off any other crap.
ideas?
There is no way to create an Eclipse project without the .project file (at least none that I know of), but you can tell Eclipse which files to ignore, as well.
Just go to Preferences -> Team -> Ignored Resources and add the pattern .project.
This setting is purely Eclipse-internal and does neither affect your global svn-ignores (defined in ~/.subversion/config) nor will it add any files to the repository.
Also, when checking out folders from SVN using Eclipse, make sure to create a General Project, not a Java Project, so the .project file is the only file Eclipse creates.
.project is actually not the only file that will be generated - depending on the "project natures" you add to a project.
To really separate the project from the source folders, you'll have to create the project in a separate folder - say the workspace - remove the original source folder and add the source folders as external links - see: Project Settings/Java Build Path/Source.

How do I get Eclipse to play nice with my SVN checkout?

I have an SVN repository checked out and have an Eclipse project set up around it. When Eclipse builds it seems to be unsetting the svn:ignore '*' inside the output directory and also causing the source files to be copied into the output folders. Removing the directory and updating a new one from the repository fixes it until Eclipse builds again but it is annoying to have to do that every time I want to commit.
I have Eclipse set up to ignore .svn directories as described here:
http://www.damonkohler.com/2009/07/make-eclipse-ignore-svn-directories.html
Example svn status:
S classes
...
? classes/dojo/Main$1.class
? classes/dojo/Main$2.class
! classes/dojo/Preferences.java
! classes/dojo/Deck.java
...
The best way to handle this is to install a Eclipse Plugin for SVN usage like subclipse or Subversive.
Are .svn and .svntemp checked in Window->Preferences->Team->Ignored Resources?
Is this like in this thread?
It looks like you use external build process which copies existing .svn folders from the source folders to the corresponding output folders (I think in this way because built-in Eclipse builder ignores team private resources like .svn).
This mean that in order to avoid the problem you should exclude .svn folders from your build process.

pydev and the src directory vs. scm

I'm trying to transition to eclipse+pydev but am having a problem importing projects under scm. My old projects (and also projects on github) don't have the "src" parent directory that pydev seems to really like.
If I use egit or subclipse to import/check out the project, the pydev environment is incomplete. If I externally check out the source and move it into place, I don't seem to be able to tell eclipse it's SCM'd.
I would think this is a FAQ, but I can't figure it out. What is the best practice to use SCM'd projects under eclipse that aren't SCM'd as eclipse projects.
Thanks. Kent
Choose the properties for the project. Then change the pydev-PYTHONPATH - remove the src entry and then add the directory of your project that contains the source.

Eclipse (Galileo) : How to ignore .svn-base files or *.svn folder in Open Resource dialog?

I am using TortoiseSVN client. I do not want to see SVN client files in Open resource dialog window. Is there any way to ignore particular folder name or file name ?
I have checked following links, There are suggesting to create working set.I am not happy with that because, i have browse down to each package and select the required resource. Is there any other way?
https://stackoverflow.com/questions/233220?sort=oldest#sort-top
Eclipse :: Hide .svn files in Open Resource dialog
Thanks.
I am using the Subversive plugin as an SVN client. It hides the SVN client files. As much as I know, the Subclipse also solves this problem.
My suggestion is to use any of these plugins as an SVN client, it will solve the problem. My preference is the Subversive, but here you can find other opinions also: What are the pros and cons of the SVN plugins for Eclipse, Subclipse and Subversive?