facebook

Erases all files without questioning [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #211776 Reply

    muesli
    Member

    i’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.

    #211781

    Riyad Kalla
    Member

    I 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.

    #211826

    muesli
    Member

    i am using the following components:

    Eclipse 3.0.0 Build ID 200406251208
    MyEclipse 3.7.2 Build ID 200407091200-3.8-Beta2

    My 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.

    #211852

    Riyad Kalla
    Member

    Ohhhhh 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.

    #211900

    muesli
    Member

    I 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!

    #211920

    Riyad Kalla
    Member

    I 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…

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Erases all files without questioning [Closed]

You must be logged in to post in the forum log in