Ordering of tasks is not working [message #1752245] |
Fri, 20 January 2017 09:25 |
|
I have the following in my setup
<setupTask
xsi:type="git:GitCloneTask"
id="git.clone.xtext.umbrella"
filter=""
remoteURI="eclipse/xtext-umbrella"
pushURI=""
checkoutBranch="${xtext.git.branch}">
<annotation
source="http://www.eclipse.org/oomph/setup/InducedChoices">
<detail
key="inherit">
<value>github.remoteURIs</value>
</detail>
<detail
key="label">
<value>Github Repository</value>
</detail>
<detail
key="target">
<value>remoteURI</value>
</detail>
</annotation>
<description>${scope.project.label}</description>
</setupTask>
<setupTask
xsi:type="setup:StringSubstitutionTask"
name="git.xtext.umbrella.location"
value="${git.clone.xtext.umbrella.location}">
<description></description>
</setupTask>
<setupTask
xsi:type="setup:ResourceCreationTask"
id="generateLocationProperties"
predecessor="git.clone.xtext.umbrella"
content="roots=next"
targetURL="${git.clone.xtext.umbrella.location}/releng/gradle-composite/locations.properties"
encoding="UTF-8">
<description>Generates a Properties File of all Git Clone Locations</description>
</setupTask>
the predecessor thing is not working,
the resource creation is executed before the clone,
which makes the clone fail
and the thing will be executed twice, once with /Users/xxxx / ... path and once with platform:/resource/users/xxx path
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
[Updated on: Fri, 20 January 2017 09:53] Report message to a moderator
|
|
|
Re: Ordering of tasks is not working [message #1752262 is a reply to message #1752245] |
Fri, 20 January 2017 12:16 |
Ed Merks Messages: 33258 Registered: July 2009 |
Senior Member |
|
|
From chatting with you, I think the issue is just that you want the task to happen after cloning is done, but cloning isn't triggered during bootstrap so you'd need to (via the advanced properties) change the triggers for the task to exclude bootstrap. You shouldn't otherwise need to specify ordering constraints in this case.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03428 seconds