facebook

Force Files into the WEB-INF\classes directory

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #229077 Reply

    I am using a product that has a number of configuration files stored in the WEB_INF\classes subdirectory. This files are in the root of the classes directory. I have tried to move them elsewhere, but the application requires this particular location.

    Whenever I do a “clean”, I have to manually copy these files back to that directory. Is there a way to have the files automatically appear in this directory? They have file extensions like .log, .cfg, and others.

    Thanks

    Michael Landy

    #229084 Reply

    jaynes
    Member

    For files like that I create a “conf” directory and set it as a source directory in the project’s java build path properties. Eclipse will copy files in that directory to classes during a build.

    #229085 Reply

    Riyad Kalla
    Member

    Michael,
    Your output folder is really a compiled reflection of your source folder(s), so I suggest putting those config files in their respective places in your source tree, this is a very common practice for properties files, xml configuration files and the like.

    Additionally you can use Jayne’s suggestion, however I find the previous suggestion occuring in more places as it is a more IDE-agnostic approach.

    #229087 Reply

    Thanks for the tip.

    BTW, I am converting from JBuilder X to Eclipse and I am just amazed at the capabilities. I even wrote a book on JBuilder X Development published by SAMS. It may be time to write a new one on Eclipse!

    #229089 Reply

    Riyad Kalla
    Member

    Very cool, we are glad you like it. (Although credit really needs to go to both the Eclipse and MyEclipse teams as we build on the Eclipse platform. So the trick would be to find where one leaves off and the other begins).

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Force Files into the WEB-INF\classes directory

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