For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 2 voices, and was last updated 21 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
muesliMemberi’m using Eclipse 3.7.2 Trial Version and i really like it.
But if i create a new Web Module Projekt with the wizard and choose existing folders, myEclipse erase all files in this folders without any message (it only takes a bit longer as usual…). This turned me into this litte red one
.myEclipse should ask if the files should be deleted or simply import the existing files into the webprojekt.
August 10, 2004 at 11:22 am #211781
Riyad KallaMemberI have never seen this behavor nor was I able to reproduce it… I just copied a webapp I’m working on into a new dir, and then erased the .myeclipse folder, and all the . files that identified it as an Eclipse project. Then I went to File > New Project > Web Module Project and pointed it at that dir and hit Finish… everything got read into my project and no changes were made…
Can you explain in mor detail what the directory your project was in, where it was, how you set it up, what the Build ID of Eclipse is, and all that jazz? This shouldn’t have happened.
August 11, 2004 at 1:43 am #211826
muesliMemberi am using the following components:
Eclipse 3.0.0 Build ID 200406251208
MyEclipse 3.7.2 Build ID 200407091200-3.8-Beta2My goal is it to import web modules which are not yet handled by myEclipse. Follow these steps to get the error:
1. Take any webproject you havenot worked on with myEclipse yet. Usually in a existing webproject is already a WebRoot (e.g. www) and a Source Path (e.g. classes).
2. Start myEclipse
3. Create a new Web Module Projekt with the wizard
4. Choose the appropriate folders (e.g. www and classes for sources and webroot) of your project mentioned in 1.
5. Press finish.After this my classes or source path is empty. The whole structure of my classes is erased.
August 11, 2004 at 11:19 am #211852
Riyad KallaMemberOhhhhh this has nothing to do with MyEclipse… Eclipse enforces the “cleaning” of the output directory before a project build, you usually shouldn’t have your source and class files in the same location. In your case your source folder IS your output folder, so what Eclipse is doing before it builds the project is “cleaning” (erasing) the output dir, which kills all your source files.
August 12, 2004 at 1:23 am #211900
muesliMemberI do not agree with you.
I have never seen that projects wizards or eclipse erase all source files when you start a project. Everytime i created new projects with eclipse it simply imported the source files.
In my opinion cleaning a workspace means erasing the compiled files but not the whole sources!
August 12, 2004 at 10:22 am #211920
Riyad KallaMemberI have never seen that projects wizards or eclipse erase all source files when you start a project.
Nor have I, and if you had read my post you would see this is not what I said. I said that Eclipse will CLEAN your output directory, if you HAPPEN to assign your output directory to the same directory that your SOURCE code is in, then it WILL erase all your source code as a side effect of cleaning the output dir.
In your second post you mention that your “classes” directory was your “Source Path”, however according to the web app spec your classes directory is where all compiled class files should go, so MyEclipse picks this directory up as your default OUTPUT dir. If you happen to have your source files IN this directory (which it sounds like you did) then all of it *will* get erased when Eclipse goes to clean the directory before building the project.
I agree that this is a bit harsh, but hardly surprising. Eclipse always cleans its output directory before rebuilding a project, I’m not sure why this is a surprise…
-
AuthorPosts
