Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I exclude symbolic link from load?

 Hi,
I've a single project with files for many platform (osx, linux, windows). In this project there are some folders that contain symbolic links that are used when I launch a build on linux/osx. But if I try to load the workspace on windows I get the symbolic link creation error.
Is there a way to avoid loading of symbolic links? Perhaps using load rules? I've tried the exclude filter by extension but it seems not work.

1 vote

Comments

Load rules would be a good way to do this. The issue is your load rule doesn't work. If you can post the load rule, we may be able to see what's wrong with it.


You can also give Eclipse the permission to create the symbolic links if you don't mind loading them on Windows.



2 answers

Permanent link
 I've a project with the following structure 

-Project
- folder1
-folder2
-folder3

and I'd like to exclude folder3 from loading (which contains the symbolic links: I'd be more happy to exclude only these but I can exclude the entire folder).
I've tried the following:

<?xml version="1.0" encoding="UTF-8"?><!--Built from the sandbox "D:\WS\OldServer" and the workspace "Mobile_Workspace_Michele"--><!--Generated: 2014-10-20 19.04.01--><scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" eclipseProjectOptions="import" version="1">
<parentLoadRule>
        <component name="TestComponent"/>
        <parentFolder repositoryPath="/"/>
        <exclude>
            <filter pattern="*folder3*"/>
        </exclude>
    </parentLoadRule>
</scm:sourceControlLoadRule>
but it does not work. I've also tried with filter name="folder" but it is the same.

0 votes

Comments

<?xml version="1.0" encoding="UTF-8"?>

<scm:sourceControlLoadRule xmlns:scm="http://com.ibm.team.scm" eclipseProjectOptions="import" version="1">

<parentLoadRule>

        <component name="TestComponent"/>

        <parentFolder repositoryPath="/Project/folder1"/>

        <exclude>

            <filter pattern="*folder3*"/>

        </exclude>

        <sandboxRelativePath includeRepositoryPath="true"/>

    </parentLoadRule>

</scm:sourceControlLoadRule>

The filter is not recursively applied to the children. You'll have to specify each folder. Also add <sandboxRelativePath includeRepositoryPath="true"/> so the item is loaded with the full path.

I've tried but it seems to load only stuff under the folder1 project and not the parent Project itself... (for example, if I have another folder sibling of folder1 it will not be loaded)


Permanent link
 Any hints on how to do this?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Oct 20 '14, 12:53 p.m.

Question was seen: 5,612 times

Last updated: Dec 11 '14, 4:58 a.m.

Confirmation Cancel Confirm