To link to an external folder, we need to rename the folder if a folder already exists with the same name as "src", or it is better to delete this folder. After that, you can establish a connection with an external folder using any of the following methods:
Method: 1 - (Make the link manually using the code):
1. Open the .project file from root folder of your workspace. 2. Include the below code with your file path: <linkedResources> <link> <name>folder_name_list_in_your_project</name> <type>2</type> <location>folder_path_to_include</location> </link> </linkedResources> 3. Save the file and refresh the project to include the external folder in your project.
Method: 2 - (Make the link manually through the interface):
1. Right click the project, select "Build Path -> Configure Build Path". 2. Choose "Source" tab. 3. Click "Link Source" button. 4. Click "Browse" to choose the folder. 5. Enter the folder name in "Folder name" field to list the external name in your project. 6. If you need to add the pattern for include and/or exclude file, click "Next" and enter the pattern. Then click "Finish". 7. Otherwise click "Finish".
This works for me and I hope that my steps will also help you.
Srinivasan.S
source share