[ETL] Using custom tools in standalone [message #1062539] |
Sat, 08 June 2013 10:04  |
Eclipse User |
|
|
|
Hello
I'm using ETL to perform a transformation between 2 models.
I use ETL as a standalone, from some other java code. Everything work fine.
Now, I want to add a trace to my transformation and I was thinking of using a java class as an hashmap to link object from my models.
I need to use this map outside of ETL. From the example on how to create custom tools for ETL (http://www.eclipse.org/epsilon/examples/index.php?example=org.eclipse.epsilon.examples.tools) i believe I can do what I want with such a solution, however I have no idea how to use my tool in a standalone.
Anyone knows how to call a tool from a standalone, or knows a better way to have a trace from ETL work ?
Best regards,
Christophe
|
|
|
|
|
|
Re: [ETL] Using custom tools in standalone [message #1063145 is a reply to message #1062543] |
Wed, 12 June 2013 09:21   |
Eclipse User |
|
|
|
Hey dimitris,
My idea was not to modifiy the trace, but just to add manually some elements inside of it. In fact, to be more clear, I just want to create some "Transformation" object inside my ETL file and then to add them manually to the current trace. Is it possible ?
If not, then I'll try making my own trace with a custom tools. There is something I don't understand for the tool. Cant he tool be any java fil extending "abstract tool" and be placed on any folder, or does it have to be something specific on it's own folder ?
I don't really understand how to create my own tools from the example, the instruction to register any ecore file and to compile don't seem to apply to this example. Can you maybe explain a bit more how I could call this example in one of my ETL script ? (for example, it would really help me just to be able to call the tool in the standalone example).
Thanks for your help,
Christophe
|
|
|
|
|
|
|
|
|
|
|
Re: [ETL] Using custom tools in standalone [message #1064048 is a reply to message #1064046] |
Mon, 17 June 2013 07:56  |
Eclipse User |
|
|
|
Hi Christophe,
In the standalone mode the class is picked up from the classpath based on its fully-qualified name (plugin.xml doesn't come into play at all). When running as a plugin it's not found as there's no tool extension with that class name.
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.09115 seconds