Re: Directory structure for project in Eclipse using Subclipse
"Richard O. Hammer" <[email protected]>
| Newsgroups | gmane.org.user-groups.trijug.juglist |
|---|---|
| Message-ID | <[email protected]> |
Tim, Thank you. I am still having trouble making sense of this. Do you keep track of tags? And if so would you suggest a separate Eclipse project for each tag? Do you use Subclipse's mechanism to "Configure Branches/Tags"? (found in the context menu for a project -> Team -> Configure Branches/Tags) Subclipse keeps on making directories in places that seem wrong to me. I am wondering if it would be easier to forget Subclipse and do all my version control from a command prompt. Thanks again, Rich Hammer Uttormark, Tim wrote: > Assuming that you are using the "standard/suggested" setup for branching > in subversion, each directory under "branches" should represent the > entire content of "trunk" at a different point in time. > > What you want then is one Eclipse project for trunk, and another for > each branch. The Eclipse .project and .classpath files go immediately > under the trunk and branch directories, and are versioned along with the > branch. For instance, the set of jars can change over time; this is > reflected in a change to the .classpath file in each branch/trunk. You > would not want to try to share one .classpath across branches as it > could not account for this. > > So: > > projectHome_current (maps to SVN trunk, represents V3 in my example) > - src > - bin > - .project > - .classpath (has jars needed for current [V3] build) > > projectHome_v1 (maps to SVN branches/v1_branch) > - src > - bin > - .project > - .classpath (has jars needed for v1 build) > > projectHome_v2 (maps to SVN branches/v2_branch) > - src > - bin > - .project > - .classpath (has jars needed for v2 build) > > > -- Tim Uttormark > Principal Java Architect, Peopleclick > > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Richard O. Hammer > Sent: Friday, October 03, 2008 1:52 PM > To: Java Users Group > Subject: [Juglist] Directory structure for project in Eclipse using > Subclipse > > I am trying to figure out how to set up a project in Eclipse that will > use Subversion through the Subclipse plug-in. I want a directory > structure that is logical and useful. > > The documentation I see suggests using three directories under the > project home, one each for: trunk, branches, and tags. But how does > that relate to the src and bin directories Eclipse likes to use? Are > all five of those in the project home? Or is there some way to set up > Eclipse to recognize a structure like this: > > projectHome > - trunk > - src > - bin > -tags > -branches > > Or am I supposed to have a top level package named "trunk" in a > structure like this: > > projectHome > -src > - trunk > - tags > - branches > -bin > > What works? > > Thank you, > Rich Hammer > > _______________________________________________ > Juglist mailing list > [email protected] > http://trijug.org/mailman/listinfo/juglist_trijug.org > >