[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Auto generating java files how to stop

From: Reynolds, Brad [contractor] <Brad.Reynolds_at_chevron.com>
Date: 2007-12-13 21:38:10 CET

Thanks.

In Eclipse I was able to set the build path to ignore the .svn folders
when building/cleaning by ignoring this:

**/.svn/**

In my source directory.

Thanks!

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com]
Sent: Wednesday, December 12, 2007 5:18 PM
To: Reynolds, Brad [contractor]
Cc: Erik Huelsmann; users@subversion.tigris.org
Subject: Re: Auto generating java files how to stop

On Dec 12, 2007, at 16:57, Reynolds, Brad [contractor] wrote:

> I am using eclipse out of the box. If you checkout into eclipse,
> having your source in a designated folder, then compiling does this?

No...

> Is this a know issue with using subversion and eclipse together?

No...

Erik meant that whatever build process you have programmed for your
software may be copying the .svn directories in each directory as well.
Doing so is an error and you should fix your build system not to do so.

Or maybe you are manually or automatically copying entire directories
from the working copy from one place to another, using normal filesystem
commands? If so, you must not do that either, because each directory
remembers where in the repository it came from, via the contents of the
hidden .svn directory.

If you check out a fresh working copy from the repository and try your
build, do you still see the problem?

>> I set up some subversion folders as follows
>>
>> myWebApp
>> - custom
>> - source
>> - com
>> ...
>> WEB-INF
>> - classes
>> - com
>> ...
>>
>> Now, I have other files I had to add that are not version controlled,

>> including class files that go in the classes folder. I am not
>> version
>
>> controlling the class files for my source. Those are being generated

>> when I build.
>>
>> Why does subversion see my class files and then say that the java
>> files are missing? This is SO lame. I thought subversion is just a
>> folder, so why is it concerning itself with the fact that I don't
>> have
>
>> my source in the same folder? When I do an update, it pushes all my
>> source files from "custom/src" to "WEB-INF/classes" next to the class

>> files I generate when I compile. This is completely unasked for. I
>> have no source in subversion under WEB-INF AT ALL.
>>
>> It's like it is looking at my folder structure and saying "Oh look,
>> you have your source files up here. That must be a mistake, we'll
>> duplicate them down here in this folder for you." It is creating all

>> kinds of havoc and conflicts.
>>
>> What can I do?
>
> Fix your build system instead of blame Subversion. Subversion doesn't
> do anything it's not told to do. If your build system copies the
> source files *and* the .svn directory in the source director, then
> it's your build system creating this havoc.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 13 22:01:12 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.