Tag Archives: linkedResources

Add a link to external dir in the project tree in Eclipse

To do this you can manually edit “.project” file in the project dir and add linked resource smth like this:

<linkedResources>
<link>
<name>some_external_dir</name>
<type>2</type>
<location>C:/myexternalfiles/files4projectX</location>
</link>
</linkedResources>

The whole .project file will look smth like this:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>projectX</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>some_external_dir</name>
<type>2</type>
<location>C:/myexternalfiles/files4projectX</location>
</link>
</linkedResources>
</projectDescription>