facebook

Import File System

💡
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. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #252347 Reply

    jadeite1000
    Member

    To Whom It May Concern:

    I am using eclipse 3.1.2, MyEclipse 4.1.1. I created a web module project called Base and there is a src source directory created automatically. I right clicked on “src” and choose “import”. I chose “File system”. and from the “Browse” button I choose the files to import. Is there a way to import a files but not copy the files to myEclipse project called “Base”. Let’s say there is a directory called BaseApp and the directory structure is the following:

    c:\BaseApp\WEB\J2EE\WEB\BUILD\SRC.

    MyEclipse project is under c:\eclipse\workspace\Base and I wanted to import the files from c:\BaseApp\web\j2ee\web\build\src to c:\eclipse\workspace\Base\src. But when I do the import I only want a reference to the files in c:\BaseApp\web\j2ee\web\build\src . I donot actually want a copy into the directory c:\eclipse\workspace\Base\src. In jbuilder when you created a project and you import a file, the file is not copy to the jbuilder project but only reference by the jbuilder project.

    Yours,

    Desperate

    #252354

    Riyad Kalla
    Member

    Desperate,
    At this time the Import operation will copy the resources and not create a reference, although what I believe you can do is unset your source dir from your project, remove the /src dir, then add a new folder to the root of your project, name it /src but click Advanced and mark it as a linked resource, then drill down to the *actual* dir you want, in this case: c:\BaseApp\WEB\J2EE\WEB\BUILD\SRC

    then hit OK. Then re-add /src as yoru src dir to your project build path. At this point /src should actually be a linked resource to the physical dir above, and no copy of the files are created.

    In Eclipse 3.2 you can create linked resources anywhere in the file tree, in 3.1 and lower you can only create them at the root level of a project (just a FYI).

    #252366

    jadeite1000
    Member

    Hi Riyad:

    I followed your instructions from the previous posting.
    For the following instruction from previous posting :
    Then re-add /src as yoru src dir to your project build path. At this point /src should actually be a linked resource to the physical dir above, and no copy of the files are created.

    How do you do the above.
    My directory structure for src is the following:
    src\com\cibc\today\portal\blank\action
    src\com\cibc\today\portal\blank\tag

    I right click on the project and select properties. I selected “Add class folder” and went to the project and in the Libraries tab, I clicked on the com folder which is a package under src directory. When I rebuild the project, I donot see the following under the WebRoot directory:

    WebRoot\WEB-INF\classes\com\cibc\today\portal\blank\action
    WebRoot\WEB-INF\classes\com\cibc\today\portal\blank\tag

    The above structure is the one I would normally see.

    I was expecting to see the compiled classes under the following directory:
    WebRoot\WEB-INF\classes\com\cibc\today\portal\blank\action
    WebRoot\WEB-INF\classes\com\cibc\today\portal\blank\tag

    Yours,

    Desperate.

    #252377

    Riyad Kalla
    Member

    I right click on the project and select properties. I selected “Add class folder” and went to the project and in the Libraries tab, I clicked on the com folder which is a package under src directory. When I rebuild the project, I donot see the following under the WebRoot directory:

    That is wrong, remove that class folder. What you want to do is go to your Java Build Path > Source tab. There you should have 1 source directory listed in the top box, something like “MyProject/src”, then at the bottom, you should have a default output folder set to something like: MyProject/WebRoot/WEB-INF/classes, this is where your source dir is compiled too.

    #252394

    jadeite1000
    Member

    Hi:

    You said in your previous reply the following:
    In Eclipse 3.2 you can create linked resources anywhere in the file tree, in 3.1 and lower you can only create them at the root level of a project (just a FYI).

    I download Eclipse 3.2 RC5, and I tried to install MyEclipse 4.1.1 BUT IT WOULD NOT ACCEPT ECLIPSE 3.2 RC5. Where can I download the latest version of MyEclipse (url) that can use Eclipse 3.2.

    Yours,

    Desperate

    #252395

    Greg
    Member

    You can download the latest version of MyEclipse 5.0 M1. It can be installed with Eclipse 3.2RC4 which is the latest release from eclipse.
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-12676.html

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Import File System

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