facebook

My WEB-INF/classes directory [Closed]

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

    Let me start by saying great product.

    I converted an existing JavaProject to a MyEclipse WebProject. When I did this it blew away my WEB-INF/classes directory. I thought that this may be a one time bug, but everytime I compile the project it blows away the WEB-INF/classes dirtectory again.

    An IDE should not mess with anthing under my /src folder. The build process should move the classes into the WEB-INF/classes!

    Is this a bug, or am I missing something?

    #199745 Reply

    After further investigation I see MyEclpse set the Default output folder to WEB-INF/classes. That is not a desired behavior, so I changed it. But when I rebuild, it blows everything away again.

    #199754 Reply

    Scott Anderson
    Participant

    A MyEclipse web project must mirror an exploded WAR archive. That implies that all the compiled code goes to the WEB-INF/classes directory so this configured as the output directory for compilations. When a build is requested in Eclipse, all the output directories are cleared by Eclipse at the beginning of the build. If you have other resources, like property files, that you’d like to be placed in the classes directory, you can place them in the corresponding location in the source tree. During the build, Eclipse will copy all non-Java files directly to the output directory.

    –Scott
    MyEclipse Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: My WEB-INF/classes directory [Closed]

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