Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Order of git checkout and resource copy
Order of git checkout and resource copy [message #1702555] Thu, 23 July 2015 08:17 Go to next message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
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?

Thanks,

Andreas
Re: Order of git checkout and resource copy [message #1702576 is a reply to message #1702555] Thu, 23 July 2015 11:41 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
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


Re: Order of git checkout and resource copy [message #1702946 is a reply to message #1702576] Mon, 27 July 2015 14:13 Go to previous message
Andreas Graf is currently offline Andreas GrafFriend
Messages: 211
Registered: July 2009
Senior Member
Thanks, that works!
Previous Topic:Access project set from URL that requires authentication
Next Topic:How is Oomph packaged into a single file?
Goto Forum:
  


Current Time: Mon Dec 09 07:21:44 GMT 2024

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

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

Back to the top