add an external source folder to the projects Build Path

In the Build Path Properties page, click the 'Link Source...' button. -Or- In PHP Explorer view, right-click the project and select Build Path | Link Source. The Link Source dialog is displayed.

2. Click the 'Browse..' button and browse to the location of the folder you want to add to the Build Path.

Alternately, click Variables and select the variable which points to the required resource.

3. The Folder name field will have been automatically populated with the name of the original folder.

Edit this entry if required.

4. Adding a folder to a project's Build Path could cause a conflict between the inclusion/exclusion patterns configured for the project root and those configured for the selected folder.

In order to avoid these nesting conflicts, select one of the following options:

■ Replace existing project source folder entry to solve nesting - This will remove your parent directory as a source folder from the Build Path configuration and replace it with the currently selected folder.

■ Update exclusion filters in other source folders to solve nesting - This will exclude the currently selected folder from the parent directory's Build Path but will add it as a separate entity so that different inclusion/exclusion patters can be configured for it.

■ Ignore nesting conflicts - The selected folder will be added as a separate entity to the Build Path list but will need to be manually excluded from the project root's Build Path to avoid nesting conflicts. 5. Click Finish.

The folder will be added to your Build Path and displayed in the Build Path list.

You can now configure a pattern for including/excluding resources for the linked folder by following the instructions under 'Configuring Inclusion/Exclusion Patterns', above.

0 0

Post a comment

  • Receive news updates via email from this site