facebook

resource files in a separate tree from src

💡
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. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #237246 Reply

    jccartwright
    Member

    Hello All,

    I’m trying to maintain my project using the structure recommended by maven (http://maven.apache.org/reference/conventions.html). This requires configuration files to be kept in separate directory trees from the java src.

    Can someone tell me how to handle this in MyEclipse so that the webapp deployment has the files in the correct place?

    Thanks!

    — john

    #237404

    Riyad Kalla
    Member

    John,
    Do you mean config files like Hibernate.cfg.xml, or config files like web.xml, struts-config.xml, etc? If it’s the previous, just make a dir with the config files in it a Source dir, if it’s the later, then that is a problem and you might need to fool around with sym links.

    #237426

    jccartwright
    Member

    Thanks for your reply. Mostly I’m interested in relocating application-specific config files and properties (e.g. myapp.xml, log4j.properties, etc.), so it sounds like I just need to designate an existing folder to be a source folder.

    Can I do that in ME? Current directory structure:

    /tng
    /src
    /main
    /java
    /resources
    /test
    /java
    /resources
    /WebRoot

    It looks like ME only sees src/main/java and src/test/java as source folders (almost certainly a choice I made in establishing the project).

    Thanks!

    — john

    #237441

    Riyad Kalla
    Member

    John,
    Sure just open up your project properties, go to Java Build Path, first tab “Source” and add another dir.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: resource files in a separate tree from src

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