For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 20 years, 3 months ago by
Greg.
-
AuthorPosts
-
jadeite1000MemberTo 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
May 22, 2006 at 10:07 am #252354
Riyad KallaMemberDesperate,
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\SRCthen 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).
May 22, 2006 at 11:30 am #252366
jadeite1000MemberHi 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\tagI 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\tagThe 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\tagYours,
Desperate.
May 22, 2006 at 3:48 pm #252377
Riyad KallaMemberI 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.
May 22, 2006 at 10:50 pm #252394
jadeite1000MemberHi:
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
May 22, 2006 at 10:59 pm #252395
GregMemberYou 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 -
AuthorPosts
