[solved] Use own tasks [message #1724365] |
Tue, 23 February 2016 11:39 |
|
Hello everybody,
With your help I could build my own tasks. Now I would like to use them.
I've already put my Ecore models on a public github repo and set their namespace location accordingly. In lack of an own server I would like to keep my compiled tasks at my local machine . I exported them as ``deployable plugins''.
How can I reference a folder as the repository of the tasks? Do the jar files need a special name?
Thanks in advance
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
[Updated on: Thu, 03 March 2016 13:19] Report message to a moderator
|
|
|
|
|
Re: Use own tasks [message #1724532 is a reply to message #1724529] |
Wed, 24 February 2016 12:59 |
|
Am 24.02.2016 um 13:03 schrieb Steffen Holzer:
> Thank you, that hint helped a lot.
> I created now an update site locally. My Ecore model points to the folder of the index.html ( C:\oomph\server\ in this
> case). I can install my tasks as plugins in eclipse itself now.
> But they still don't show up or get executed when running the installer.
On the Confirmation page you can select "Show all triggered tasks". Does it show up then?
> I get neither a warning or a stack trace in the logs.
> I gave both my tasks a priority of 100 (Redirection) and the isNeeded() method always returns true. Furthermore I
> declared them as predeccessors of the installation task.
To diagnose your problem it might help to use all the default values. Does that make the task show up?
> Is there a verbose mode for the eclipse installer?
No. You could provision an Oomph workspace, import your task projects, and use the debugger with the "Setup (Installer
Dialog)" launch. Breakpoints in your isNeeded() and perform() methods might help to see what's going on.
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
|
|
|
Re: Use own tasks [message #1724678 is a reply to message #1724532] |
Thu, 25 February 2016 12:09 |
|
>> Thank you, that hint helped a lot.
>> I created now an update site locally. My Ecore model points to the folder of the index.html ( C:\oomph\server\ in this
>> case). I can install my tasks as plugins in eclipse itself now.
>> But they still don't show up or get executed when running the installer.
>On the Confirmation page you can select "Show all triggered tasks". Does it show up then?
No, they don't.
>> I get neither a warning or a stack trace in the logs.
> >I gave both my tasks a priority of 100 (Redirection) and the isNeeded() method always returns true. Furthermore I
>> declared them as predeccessors of the installation task.
>To diagnose your problem it might help to use all the default values. Does that make the task show up?
Not at all. I implemented the most default task (all triggers, only logs (''implement me'') on perform()). But they task still doesn't show up or gets executed.
>> Is there a verbose mode for the eclipse installer?
>No. You could provision an Oomph workspace, import your task projects, and use the debugger with the "Setup (Installer
Dialog)" launch. Breakpoints in your isNeeded() and perform() methods might help to see what's going on.
Thank you for the suggestion. I should have thought of that myself. I found that none of the methods of my tasks get even called.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
|
|
|
Re: Use own tasks [message #1724875 is a reply to message #1724678] |
Fri, 26 February 2016 16:58 |
|
Am 25.02.2016 um 13:09 schrieb Steffen Holzer:
>>> Thank you, that hint helped a lot.
>>> I created now an update site locally. My Ecore model points to the folder of the index.html ( C:\oomph\server\ in
>>> this case). I can install my tasks as plugins in eclipse itself now.
>>> But they still don't show up or get executed when running the installer.
>> On the Confirmation page you can select "Show all triggered tasks". Does it show up then?
> No, they don't.
>
>>> I get neither a warning or a stack trace in the logs.
>> >I gave both my tasks a priority of 100 (Redirection) and the isNeeded() method always returns true. Furthermore I
>>> declared them as predeccessors of the installation task.
>> To diagnose your problem it might help to use all the default values. Does that make the task show up?
> Not at all. I implemented the most default task (all triggers, only logs (''implement me'') on perform()). But they
> task still doesn't show up or gets executed.
>
>>> Is there a verbose mode for the eclipse installer?
>> No. You could provision an Oomph workspace, import your task projects, and use the debugger with the "Setup (Installer
> Dialog)" launch. Breakpoints in your isNeeded() and perform() methods might help to see what's going on.
> Thank you for the suggestion. I should have thought of that myself. I found that none of the methods of my tasks get
> even called.
Without your task model and code I can't debug it myself. Maybe you set a breakpoint in
SetupTaskPerformer.initTriggeredSetupTasks() to get more clues...
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
|
|
|
|
|
|
Re: Use own tasks [message #1725182 is a reply to message #1725173] |
Tue, 01 March 2016 12:39 |
|
I started from scratch with a new simple task (in the same repository under the name -simple-).
But my problems stay. I have a workspace dependent publication location and my schemaLocations point to the ecore model.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
|
|
|
|
Re: Use own tasks [message #1725185 is a reply to message #1725183] |
Tue, 01 March 2016 13:25 |
|
I put it there by hand since I want it all in that little fake server at C:\oomph\server.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
|
|
|
|
Re: Use own tasks [message #1725433 is a reply to message #1725187] |
Thu, 03 March 2016 13:19 |
|
Hi Ed,
Thank you a thousand times for your patience and help. I solved my problems with:
- publish the model directly to the update site project in the workspace
- Using the file:// protocoll to address my local files
- Using only unix conform path seperators '/'
- And of course fixing my old product setups
I managed to get my task performed. I feel really dumb by now ^^
But the debug run of the installer is pretty silent since only really grave errors are printed in the log.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live" - John Woods
|
|
|
Re: Use own tasks [message #1725438 is a reply to message #1725433] |
Thu, 03 March 2016 13:37 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Steffen,
There are certainly quite a large number of relatively magical things
that need to all work in combination and yes, the failure to load a
resource is relatively quiet affair because networks fail constantly and
index refers to resources not maintained by us that can introduce errors
as well, which if we logged them, would generally result in people
opening bugs or automated problem reports against Oomph...
On 03.03.2016 14:19, Steffen Holzer wrote:
> Hi Ed,
> Thank you a thousand times for your patience and help. I solved my
> problems with:
>
> publish the model directly to the update site project in the workspace
> Using the file:// protocoll to address my local files
> Using only unix conform path seperators '/'
> And of course fixing my old product setups
>
> I managed to get my task performed. I feel really dumb by now ^^
> But the debug run of the installer is pretty silent since only really
> grave errors are printed in the log.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03928 seconds