facebook

i delete a generated java file and it re-appears

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #310395 Reply

    I am new to MyEclipse for Spring. I followed the Spring annotations tutorial, and when it was done I wanted to delete the file that I created while doing the tutorial named “MyNewController.java” I delete it and also MyNewController.java from the “generated” folder. But then it re-appears. I do not understand why java files are in the generated folder instead of in the “src” folder. Obviously I am a newbie to this. Can anyone explain what this “generated” folder is all about and why nothing is in the “src” folder, and why things I delete from “generated” come back?

    #310430 Reply

    Heflin Hogan
    Member

    The generated folder is the default location for code created via the Spring DSL or scaffolding. If you want, you can specify the “src” folder as the destination folder for generated code, either in the scaffolding wizards, or in the Spring DSL editor’s code generation panel. As to why something reappear in the “generated” folder after you delete it, the short answer is that is being re-generated. Items created via the Spring DSL will do this unless code generation has been turned off for that object. Did you enable Spring DSL in your project?

    Regards,
    Heflin

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: i delete a generated java file and it re-appears

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