Using the Git clone location to build working sets [message #1817061] |
Thu, 14 November 2019 21:35 |
|
Hi,
The Location Import task can use the Git location URI as defined via the Root folder attribute: Example: ${git.clone.dartboard.location}
I would like to use this clone location to build working sets, e.g. everything which is in one Git repo should go into the same working set.
I tried the following but that only results in empty worksets.
<setupTask
xsi:type="setup.workingsets:WorkingSetTask"
prefix="org.eclipse.dartboard-">
<workingSet
name="${scope.project.label}">
<predicate
xsi:type="predicates:AndPredicate">
<operand
xsi:type="predicates:LocationPredicate"
pattern="${git.clone.dartboard.location}"/>
</predicate>
</workingSet>
<description>The dynamic working sets for ${scope.project.label}</description>
</setupTask>
Please advice how this can be done, or what I did wrong.
The full project setup file is attached.
Thank you.
Best regards, Lars
|
|
|
|
Re: Using the Git clone location to build working sets [message #1817089 is a reply to message #1817071] |
Fri, 15 November 2019 10:41 |
|
> Why not just use the same repository predicate?
I only see the Repository predicate (see screenshot). AFAICS this predicate requires that I configure another project from the repo as reference If I want to add several Git repos to my workspace setup that is a lot of maintenance. and as the project may change over time, time consuming to maintain.
As Project Import can use the Git repos as reference, I hope that Working Sets can use the same.
Or maybe I misunderstood you and I oversee a easy solution.
> Remember that you can always look at other setups and that Ctrl-F works for finding things;
I looked at the Platform Project Setup https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/interim/Platform.setup and it also uses the approach to specify a project.
-
Attachment: oomph.png
(Size: 118.24KB, Downloaded 78 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04528 seconds