|
Re: Order of git checkout and resource copy [message #1702576 is a reply to message #1702555] |
Thu, 23 July 2015 11:41 |
|
Am 23.07.2015 um 10:17 schrieb Andreas Graf:
> Hi all,
>
> we have an Ooomph setup that is working quite fine with the following small exception:
>
> * We want to copy a single file that is in our git repo to a certain location on disk
>
> So we have a
>
> * resource copy action
> * git checkout action
>
> However,
>
> the git checkout action get started when the running eclipse is executed, but the resource copy action is executed by
> the oomph installer. That means that resource copy is executed before the git checkout action -> the file is obviously
> not there.
>
> Is there anyway to influence the Oomph behaviour here?
Of course there is ;-)
*By default* the ResourceCopyTask can perform on all three triggers, i.e., BOOTSTRAP, STARTUP and MANUAL. For obvious
reasons the GitCloneTask can only perform on the STARTUP and MANUAL triggers.
In the advanced properties you can further constrain on what triggers your task is supposed to perform. Select "STARTUP,
MANUAL" there for your ResourceCopyTask and all should be good.
In general the hard-coded priority can also interfere but in your case both tasks have default priority, that means
their order of appearance in your model determines the perform order. If for some reason that doesn't suit your needs
you can, again in the advanced properties, influence the perform order by setting the predecessors or successors of a task.
I hope that helps ;-)
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03601 seconds