facebook

Default files structure of MyEclipse

💡
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 IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218785 Reply

    Kevin_L
    Member

    Hi,

    I notice that MyEclipse is making WebRoot as the default folder for putting web pages. I know that if I put “/” it will create file structures without WebRoot. But I want to know why you guys designe MyEclipse to do that. Also I notice that src files is level to WebRoot folder….but if I put java files inside src folder…MyEclispse create classes folder automatically under WEB-INF folder under WebRoot folder…..

    I also would like to know whether it is fine for adding resources folder under src folder to add application.properties

    And is there a way to add build.xml to be used with Ant?

    K~

    #218789

    Riyad Kalla
    Member

    Kevin,

    But I want to know why you guys designe MyEclipse to do that.

    The default project structure in MyEclipse is that of an exploded WAR file, however your source code should NOT be deployed with your application, so we moved the WAR-structure down one level into its own folder (default name is “WebRoot”) and allow people to setup their project one level above that, for example, add /src folders, /docs folders, /lib folders, etc… anything else they need for the project that doesn’t need to be deployed with the WAR file.

    MyEclispse create classes folder automatically under WEB-INF folder under WebRoot folder…..

    This is defined by the web application spec, your class files must go into WEB-INF/classes, your JAR must go in WEB-INF/lib… both are recognized by MyEclipse as special and treated accordingly.

    I also would like to know whether it is fine for adding resources folder under src folder to add application.properties

    Yes you are exactly right, they should go in your /src tree. Eclipse will copy them over into the output folder (WEB-INF/classes) when your project builds.

    And is there a way to add build.xml to be used with Ant?

    Sure, just drop it in the root of your project, at the same level with /src and /WebRoot… this is typical project setup.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Default files structure of MyEclipse

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