[QVTo] Standalone execution [message #807941] |
Mon, 27 February 2012 02:47  |
Eclipse User |
|
|
|
Hi
A few earlier threads suggest some problems but ultimately success when
running a QVTo transformation standalone, but also some ambiguity about
quite what standalone means.
Does anyone know how to run a QVTo transformation when the Eclipse
platform is not running; i.e. no IFiles and no plugin registries?
It appears that DeployedQvtModule supports execution from a plugin and
that WorkspaceQvtModule supports execution from an IFile, but where is
the support for execution from a standalone Resource?
Regards
Ed Willink
|
|
|
|
|
Re: [QVTo] Standalone execution [message #817218 is a reply to message #817207] |
Fri, 09 March 2012 15:05  |
Eclipse User |
|
|
|
Hi Alan
I'm running within the MWE2 environment for which
EMFPlugin.IS_ECLIPSE_RUNNING is false.
I have my own ProjectMapSetup to fully populate platform:/resource/...
and platform:/plugin/... from the class path. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=360926#c7 for my analysis
of what's needed to make standalone work.
Regards
Ed Willink
On 09/03/2012 19:48, Alan McMorran wrote:
> Ed,
>
> Have you got QVTO running outside of OSGi (i.e. in a Java static void
> main?) or is it just outside of Eclipse but within Equinox? I ran
> into headaches getting things like blackbox units and transformation
> units to compile when I tried this a while ago as a plain old java
> runtime, but I've been successfully running it with a light-weight
> OSGi kernel.
>
> Alan
>
> On 2012-02-29 10:09:33 +0000, Ed Willink said:
>
>> Hi All
>>
>> It's pretty easy; just use
>> org.eclipse.m2m.qvt.oml.TransformationExecutor.
>>
>> Only minor trick is to provide positionally aligned ModelExtents with
>> a probably empty output one, whose contents need to be copied to an
>> output resource and saved on completion.
>>
>> An MWE2 integration may soon be found at:
>> /org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/utilities/QvtoWorkflowComponent.java
>>
>
>
>>
>> Regards
>>
>> Ed Willink
>>
>> On 27/02/2012 07:47, Ed Willink wrote:
>>> Hi
>>>
>>> A few earlier threads suggest some problems but ultimately success
>>> when running a QVTo transformation standalone, but also some
>>> ambiguity about quite what standalone means.
>>>
>>> Does anyone know how to run a QVTo transformation when the Eclipse
>>> platform is not running; i.e. no IFiles and no plugin registries?
>>>
>>> It appears that DeployedQvtModule supports execution from a plugin
>>> and that WorkspaceQvtModule supports execution from an IFile, but
>>> where is the support for execution from a standalone Resource?
>>>
>>> Regards
>>>
>>> Ed Willink
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08231 seconds