facebook

Auto-copy resource directory to "bin"

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

    LeeRhodes
    Member

    Under a standard package source folder I have an “image” directory for image resources. How do I get Eclipse to automatically copy this directory and its contents to the same position in the output “bin” directories (without having to write an Ant script to explicitly do that), and keep it updated ?

    Thanks for any help in advance.

    Lee.

    #268247 Reply

    Riyad Kalla
    Member

    Lee,
    Eclipse does this by default. Any non-compilable units are simply copied into the output folder. Switch to your navigator view and drill down into your output folder and see if that stuff is there. If not, try and clean (rebuild) the project.

    #268258 Reply

    LeeRhodes
    Member

    Riyad,
    Nope. cleaning / rebuilding does not help.
    To be more specific, my Java Build Path/Source is
    <project>/src
    Included: (All)
    Excluded: (None)
    Allow output folders for source folders (Not Checked)
    Default output folder: <project>/bin

    In the src folder the structure is like:
    src/…/abc.java/images/x.gif

    And what needs to exist in order for the class files to find the image is
    bin/…/abc.class/images/x.gif

    I have tried “excluding” the images directory but that doesn’t help either.

    Any other suggestions??

    Lee.

    #268259 Reply

    LeeRhodes
    Member

    Riyad,
    Hold on…I rebooted Eclipse and now it’s working!
    Mysterious.

    Thanks for the help.

    Lee.

    #268260 Reply

    Riyad Kalla
    Member

    Lee, thanks for following up, glad it’s working now.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Auto-copy resource directory to "bin"

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