Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Eclipse newbie question

Thread view: 
soup_or_power@yahoo.com - 22 Feb 2006 19:33 GMT
Sorry to post here. I couldn't find a suitable newsgroup. Besides I
don't have access to eclipse.org at this time.

Can someone please tell me why eclipse is deleting the source files in
the repository (the ultimate physical location) upon building? Someone
suggested the following:
-uncheck the build-automatically option
-disconnect project from repository before each build
-update .project and .classpath files

Unfortunately I am not savvy enough to grasp these esoteric concepts.
Can somone please crystallize them for me?

Thanks for your help
Rhino - 22 Feb 2006 22:37 GMT
> Sorry to post here. I couldn't find a suitable newsgroup. Besides I
> don't have access to eclipse.org at this time.
[quoted text clipped - 8 lines]
> Unfortunately I am not savvy enough to grasp these esoteric concepts.
> Can somone please crystallize them for me?

I don't use any code repository tools myself but I'd be very surprised if
the Eclipse was somehow deleting source code from your repository upon doing
a build. I can't imagine why it would do so. Isn't the whole idea of a
repository to *save* each version of the source code? What repository are
you using? CVS? SVN?

Also, I'm not clear why you can't access the newsgroups on the eclipse.org
news server; I think they are clearly the best place to ask this kind of
question. All you need to know is the "secret" password for the news
server - which hasn't changed in the four years that I've been using
Eclipse - and you should be able to post there. The newsgroups there are
very active and focused entirely on Eclipse issues.

As for the automatic build option, I believe that Eclipse's default
behaviour is to rebuild every project in Eclipse every time you save
something; that's not as big a deal as it first sounds because of the
incremental compiles that it does. You can disable this automatic build by
going to the Project menu on the main toolbar and unchecking "Build
automatically" if it is currently checked. That will activate some other
options that are normally greyed out, including Build All and Build Project.
That enables you to build when _you_ want to, not when Eclipse wants to.

--
Rhino
Chris Smith - 23 Feb 2006 02:10 GMT
> Sorry to post here. I couldn't find a suitable newsgroup. Besides I
> don't have access to eclipse.org at this time.
>
> Can someone please tell me why eclipse is deleting the source files in
> the repository (the ultimate physical location) upon building?

If Eclipse is deleting something occasionally when building, chances are
you've configured that location as its output directory.  In that case,
you've seriously hosed your project configuration.  Do NOT follow the
instructions you got elsewhere.  Leaving Eclipse poised to delete your
source code if you forget a step is about the worst idea I've ever seen.

Instead, right-click the project, choose "Properties", and then in the
"Java Build Path" section, move the output directory to the right place.  
Typically, by the way, your source code repository should not even be in
your project folder at all!

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.