Skip to main content



      Home
Home » Eclipse Projects » Oomph » Use git repository path for working set
icon5.gif  Use git repository path for working set [message #1760836] Wed, 03 May 2017 09:50 Go to next message
Eclipse UserFriend
(This is a windows-only problem)

In my setup, I want to clone some repositories and put all projects into one working set per repository. I tried to use a LocationPredicate for the working set, using the location of the repository:

(assuming that git.clone.commons is the id of the repository)

    <workingSet
        name="Commons"
        id="workingset.commons">
      <predicate
          xsi:type="predicates:LocationPredicate"
          pattern="${git.clone.commons.location|property}\\.*"/>
    </workingSet>

I'm using the |property filter to escape the backslashes. However, this does not work. A dynamic working set C:\\dev\\git\\commons\\.* is always empty. If I use forward-slashes, however, it works: C:/dev/git/commons/.*

Is there a filter to replace all backslashes with forward slashes or can I somehow use backslashes in the location-predicate?
Re: Use git repository path for working set [message #1760852 is a reply to message #1760836] Wed, 03 May 2017 11:45 Go to previous messageGo to next message
Eclipse UserFriend
I think you would be better off using the RepositoryPredicate and simply add one of the projects from that repository as value, see e.g. https://git.eclipse.org/c/diffmerge/org.eclipse.emf.diffmerge.core.git/tree/releng/org.eclipse.emf.diffmerge.releng/setup/EMFDiffMerge.setup#n164
<operand
  xsi:type="predicates:RepositoryPredicate"
  project="org.eclipse.emf.diffmerge.sdk.feature"/>

Re: Use git repository path for working set [message #1761240 is a reply to message #1760852] Tue, 09 May 2017 06:35 Go to previous message
Eclipse UserFriend
Thank you, this is exactly what I needed.
Previous Topic:Eclipse Installer by oomph with Eclipse Indigo 3.7
Next Topic:Targlets: How do I require everything found in the referenced repositories?
Goto Forum:
  


Current Time: Sun Jul 27 04:21:12 EDT 2025

Powered by FUDForum. Page generated in 0.04238 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top