facebook

How to add/make aware existing files in a source directory?

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

    kurobt
    Member

    Say I have com.foo.bar package in the src subdir in a project MyProj.
    On the filesystem, this looks like:
    ~/eclipsews/MyProj/src/com/foo/bar/MyClass1.java
    or in MyEclipse package exlporer, this would look like

    – MyProj
    | – src
    | | – com.foo.bar
    | | | MyClass1.java
    | | + MyClass2.java
    | |

    In the file system, I added a file testtext.txt using a text editor.
    (I did not use MyEclipse New->File.)

    testtext.txt does not show up in the package explorer.

    How can I make MyEclipse aware of this new file so that it would show it like:
    – MyProj
    | – src
    | | – com.foo.bar
    | | | MyClass1.java
    | | | MyClass2.java
    | | + testtext.txt
    | |

    and it would copy to the output directory when the package is built?

    I tried File>Import with Filesystem. But that did not work because the source and the destination was same. Obviously, I don’t want it to be copied. I just want MyEclipse to be aware that this new file should be managed by it.

    #278892 Reply

    Loyal Water
    Member

    testtext.txt does not show up in the package explorer.

    Just drag and drop the file at the root of your project in the Package Explorer. Are you able to see it now ?

    Can you go to MyEclipse > Installation Summary > Installation Detials and paste the information here for me.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to add/make aware existing files in a source directory?

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