facebook

Specifying different directory for generated java files

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

    I am generating local, remote, utility and value holder classes for different
    parts of my J2EE application. I wish to have the generated java files
    in a separate directory tree. What is the best way to set this up in
    MyEclipse?

    Thanks

    #208442 Reply

    Scott Anderson
    Participant

    By a different directory, do you mean a completely different src folder or just a different package from your other sources?

    #208445 Reply

    I mean a different src diretory. I want to make sure I have a clear
    separation between written and generated files.

    #208451 Reply

    Riyad Kalla
    Member

    kuzman,
    You can add any number of source folders you would like and just add them accordingly to your Java Build Path’s “Source” tab so Eclipse knows to treat the code like source… but they will all be compiled to the same output folder. If this isn’t a problem, then you are all set.

    I’ve seen use things like “src” and then “src_gen” and “ejb_gen” and things of this nature to differentiate. If taht’s the case go ahead and create the folders, setup your XDoclet tasks to gen into appropriate dirs, and then go to your Project Properties > Java Build Path > Source panel, and add those dirs to the “Source folders on build path:” box.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Specifying different directory for generated java files

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