Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse build modifying SVN config files
Eclipse build modifying SVN config files [message #248118] Wed, 26 September 2007 10:13 Go to next message
Eclipse UserFriend
I have a project in Subversion, with a src and a bin directory, and am
using the command line SVN client quite happily.

I also have Eclipse 3.0.0 installed, but *without* the Subclipse plugin.

If I build the project in Eclipse then it somehow modifies the
svn\entries file for the bin directory, changing "/bin" at the end of the
URL to "/src".

SVN picks this up as a Subversion "switch", and then everything gets very
confused, with all my .java files appearing in the bin tree, etc.

Can anyone suggest a reason why the Eclipse build would be changing the
svn\entries file?

I've copied my Eclipse feature/plugin settings below in case that helps.

---------------------
*** Features:
org.eclipse.jdt (3.0.0) "Eclipse Java Development Tools"
org.eclipse.jdt.source (3.0.0) "Eclipse Java Development Tools SDK"
org.eclipse.pde (3.0.0) "Eclipse Plug-in Development Environment"
org.eclipse.pde.source (3.0.0) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.platform (3.0.0) "Eclipse Platform"
org.eclipse.platform.source (3.0.0) "Eclipse Platform Plug-in Developer
Resources"
org.eclipse.sdk (3.0.0) "Eclipse Project SDK"

*** Plug-in Registry:
org.apache.ant (1.6.1) "Apache Ant"
org.apache.lucene (1.3.0) "Apache Lucene"
org.eclipse.ant.core (3.0.0) "Ant Build Tool Core"
org.eclipse.ant.ui (3.0.0) "Ant UI"
org.eclipse.compare (3.0.0) "Compare Support"
org.eclipse.core.boot (3.0.0) "Core Boot"
org.eclipse.core.expressions (3.0.0) "Expression Language"
org.eclipse.core.filebuffers (3.0.0) "File Buffers"
org.eclipse.core.resources (3.0.0) "Core Resource Management"
org.eclipse.core.resources.win32 (3.0.0) "Core Resource Management Win32
Fragment"
org.eclipse.core.runtime (3.0.0) "Core Runtime"
org.eclipse.core.runtime.compatibility (3.0.0) "Core Runtime Plug-in
Compatibility"
org.eclipse.core.variables (3.0.0) "Core Variables"
org.eclipse.debug.core (3.0.0) "Debug Core"
org.eclipse.debug.ui (3.0.0) "Debug UI"
org.eclipse.help (3.0.0) "Help System Core"
org.eclipse.help.appserver (3.0.0) "Help Application Server"
org.eclipse.help.base (3.0.0) "Help System Base"
org.eclipse.help.ide (3.0.0) "Help System IDE"
org.eclipse.help.ui (3.0.0) "Help System UI"
org.eclipse.help.webapp (3.0.0) "Help System Webapp"
org.eclipse.jdt (3.0.0) "Eclipse Java Development Tools"
org.eclipse.jdt.core (3.0.0) "Java Development Tools Core"
org.eclipse.jdt.debug (3.0.0) "JDI Debug Model"
org.eclipse.jdt.debug.ui (3.0.0) "JDI Debug UI"
org.eclipse.jdt.doc.isv (3.0.0) "Eclipse JDT Plug-in Developer Guide"
org.eclipse.jdt.doc.user (3.0.0) "Eclipse Java Development User Guide"
org.eclipse.jdt.junit (3.0.0) "Java Development Tools JUnit support"
org.eclipse.jdt.junit.runtime (3.0.0) "Java Development Tools JUnit
runtime support"
org.eclipse.jdt.launching (3.0.0) "Java Development Tools Launching
Support"
org.eclipse.jdt.source (3.0.0) "Eclipse Java Development Tools SDK"
org.eclipse.jdt.ui (3.0.0) "Java Development Tools UI"
org.eclipse.jface (3.0.0) "JFace"
org.eclipse.jface.text (3.0.0) "JFace Text"
org.eclipse.ltk.core.refactoring (3.0.0) "Refactoring Core"
org.eclipse.ltk.ui.refactoring (3.0.0) "Refactoring UI"
org.eclipse.osgi (3.0.0) "OSGi System Bundle"
org.eclipse.osgi.services (3.0.0) "OSGi Release 3 Services"
org.eclipse.osgi.util (3.0.0) "OSGi R3 Utility Classes"
org.eclipse.pde (3.0.0) "Eclipse Plug-in Development Environment"
org.eclipse.pde.build (3.0.0) "Plug-in Development Environment Build
Support"
org.eclipse.pde.core (3.0.0) "Plug-in Development Core"
org.eclipse.pde.doc.user (3.0.0) "Eclipse Plug-in Development User Guide"
org.eclipse.pde.junit.runtime (3.0.0) "PDE JUnit Plug-in Test"
org.eclipse.pde.runtime (3.0.0) "Plug-in Development Environment Runtime"
org.eclipse.pde.source (3.0.0) "Eclipse Plug-in Development Environment
Developer Resources"
org.eclipse.pde.ui (3.0.0) "Plug-in Development UI"
org.eclipse.platform (3.0.0) "Eclipse Platform"
org.eclipse.platform.doc.isv (3.0.0) "Eclipse Platform Plug-in Developer
Guide"
org.eclipse.platform.doc.user (3.0.0) "Eclipse Workbench User Guide"
org.eclipse.platform.source (3.0.0) "Eclipse Platform Plug-in Developer
Resources"
org.eclipse.platform.source.win32.win32.x86 (3.0.0) "Eclipse Platform
Plug-in Developer Resources"
org.eclipse.sdk (3.0.0) "Eclipse Project SDK"
org.eclipse.search (3.0.0) "Search Support"
org.eclipse.swt (3.0.0) "Standard Widget Toolkit"
org.eclipse.swt.win32 (3.0.0) "Standard Widget Toolkit for Windows"
org.eclipse.team.core (3.0.0) "Team Support Core"
org.eclipse.team.cvs.core (3.0.0) "CVS Team Provider Core"
org.eclipse.team.cvs.ssh (3.0.0) "CVS SSH Core"
org.eclipse.team.cvs.ssh2 (3.0.0) "CVS SSH2"
org.eclipse.team.cvs.ui (3.0.0) "CVS Team Provider UI"
org.eclipse.team.ui (3.0.0) "Team Support UI"
org.eclipse.text (3.0.0) "Text"
org.eclipse.tomcat (4.1.30) "Tomcat Wrapper"
org.eclipse.ui (3.0.0) "Eclipse UI"
org.eclipse.ui.cheatsheets (3.0.0) "Cheat Sheets"
org.eclipse.ui.console (3.0.0) "Console"
org.eclipse.ui.editors (3.0.0) "Default Text Editor"
org.eclipse.ui.externaltools (3.0.0) "External Tools"
org.eclipse.ui.forms (3.0.0) "Eclipse Forms"
org.eclipse.ui.ide (3.0.0) "Eclipse IDE UI"
org.eclipse.ui.intro (3.0.0) "Intro Plugin"
org.eclipse.ui.presentations.r21 (3.0.0) "R21 Presentation Plug-in"
org.eclipse.ui.views (3.0.0) "Views"
org.eclipse.ui.win32 (3.0.0) "Win32 fragment"
org.eclipse.ui.workbench (3.0.0) "Workbench"
org.eclipse.ui.workbench.compatibility (3.0.0) "Workbench Compatibility"
org.eclipse.ui.workbench.texteditor (3.0.0) "Text Editor Framework"
org.eclipse.update.configurator (3.0.0) "Install/Update Configurator"
org.eclipse.update.core (3.0.0) "Install/Update Core"
org.eclipse.update.core.win32 (3.0.0) "Install/Update Core for Windows"
org.eclipse.update.scheduler (3.0.0) "Automatic Updates Scheduler"
org.eclipse.update.ui (3.0.0) "Install/Update UI"
org.junit (3.8.1) "JUnit Testing Framework"
Re: Eclipse build modifying SVN config files [message #248123 is a reply to message #248118] Wed, 26 September 2007 10:47 Go to previous messageGo to next message
Eclipse UserFriend
>I have a project in Subversion, with a src and a bin directory, and am
>using the command line SVN client quite happily.

> If I build the project in Eclipse then it somehow modifies the svn\entries
> file for the bin directory, changing "/bin" at the end of the URL to
> "/src".
> SVN picks this up as a Subversion "switch", and then everything gets very
> confused, with all my .java files appearing in the bin tree, etc.

A solution here is to remove "bin" from subversion (it doesn't belong there
anyway if it is where classes are built) or alternatively, use a
subdirectory in bin (like bin/classes) _that isn't in subversion_ as your
output folder. The reason for what you are seeing is that Eclipse (and ANT
too I believe) copies any non-java file (not in the package view filter or
source exclusions) in a java source tree to the output folder's tree.

A final alternative is also suggestion by the previous sentence: add
"**/.svn" to the exclusion filters for each java source folder in your
project. This will solve the problem of subversion thinking src has been
moved to bin but it will not solve the problem of subversion thinking bin
has been deleted after doing a clean/rebuild (complete wipe of output
folder) of your project in elclipse.
Re: Eclipse build modifying SVN config files [message #248128 is a reply to message #248123] Wed, 26 September 2007 10:57 Go to previous message
Eclipse UserFriend
Wow, that was quick! Thanks :-)
Previous Topic:Hierachy View is missing subclasses
Next Topic:Plugin which allows hot redeployment of classes to a web server?
Goto Forum:
  


Current Time: Mon Jun 09 09:40:50 EDT 2025

Powered by FUDForum. Page generated in 0.04833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top