- This topic has 7 replies, 4 voices, and was last updated 15 years, 7 months ago by Loyal Water.
-
AuthorPosts
-
Paul WadeMemberOk, this is driving me complete batty. I’m migrating to Subversion from nothing and I’ve decided to use TortoiseSVN instead of Subclipse (personal choice). The first problem I was having was when the automatic builds ran the .svn folder in my source folder was getting copied into my build folder which made it look like it was being put in the repository. I have already set up my build folders (build.main and build.test) to be ignored globally by SVN.
So I added .svn to the exclusion list for my source both at the project level and in Java – Compiler – Build. It’s not working the way it should I don’t think.
It seems that if I do a clean, the build directories get recreated to include the .svn directories. If I recreate the directories by manually deleting them and then refreshing the project in package explorer, they get created correctly. If I then modify a file, triggering a build, the .svn folders are still absent from my build folders. But anything that does a full rebuild seems to grab the .svn folders even though I’ve got them excluded in both places I know about.
Am I doing something wrong or should I report this as a bug?
My .classpath file:
<classpath> <classpathentry excluding=".svn" kind="src" path="src.main"/> <classpathentry excluding=".svn" kind="src" output="build.test" path="src.test"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="var" path="DEV_ROOT/MyProject/vendor/lib/junit.jar"/> <classpathentry kind="var" path="DEV_ROOT/MyProject/vendor/lib/log4j.jar"/> <classpathentry kind="output" path="build.main"/> </classpath>
Loyal WaterMemberPaul,
Did you go to Windows > Prefs > Java > Compiler > Building and type .svn/ in the filtered resource text box? Did that help?
Paul WadeMemberPer my original post, yes. I set it in Preferences first and when that didn’t work I also added it to my classpath settings in the project.
Paul WadeMemberAnd this is most definitely reproducible. I delete the build folders, change my source with auto-build on and it recreates the build folders without the .svn folders. If I then run a clean, it copies in the .svn folders. Something is borked.
Riyad KallaMemberPaul,
Eclipse, by default, “builds” non-compilable resources from source folders by copying them into your build dest dir. That’s how .properties files, .xml and other custom resources make it from your src tree to your dest dir un-touched.
Because you are not using Subversive or Subclipse, the Eclipse platform has no idea those .svn dirs are special, and all the filters you are setting up are for your *classpath*, you are not adjusting the build rules that the compiler follows. You’ll need to use an Eclipse SVN client if you want it to stop copying out those directories and recognize them as source control artifacts.
Ton HuismanMember@support-rkalla wrote:
…You’ll need to use an Eclipse SVN client if you want it to stop copying out those directories and recognize them as source control artifacts.
Installing the plugin would be enough, you don’t have to use it…
HTH
Ton
Paul WadeMember@support-rkalla wrote:
Paul,
Eclipse, by default, “builds” non-compilable resources from source folders by copying them into your build dest dir. That’s how .properties files, .xml and other custom resources make it from your src tree to your dest dir un-touched.
Because you are not using Subversive or Subclipse, the Eclipse platform has no idea those .svn dirs are special, and all the filters you are setting up are for your *classpath*, you are not adjusting the build rules that the compiler follows. You’ll need to use an Eclipse SVN client if you want it to stop copying out those directories and recognize them as source control artifacts.
So of what purpose is the filter in .classpath and the filtered resources in Preferences -> Java -> Compiler -> Building? I did install Subclipse and the problem did go away, but I guess I’m missing the point of having those options available if the compiler is just ignoring them anyway. What are they used for if not this?
Loyal WaterMemberThe Filtered Resources building preference should be filtering the Subversion resources… maybe you had your filter wrong? “.svn/” without quotes could possibly be right?
-
AuthorPosts