Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Transformation via Java class: Import Library?
Transformation via Java class: Import Library? [message #1696117] Fri, 22 May 2015 06:33 Go to next message
Thomas Busch is currently offline Thomas BuschFriend
Messages: 23
Registered: November 2014
Junior Member
Hi,

I have one QVTo-Project in my first Eclipse-Instance. There I have a transform.qvto and a myLib.qvto.
Another Java-Plugin is in the first instance which will execute that transform.qvto in a second Eclipse-Instance. This does work very well, as long as the transform.qvto doesnt import libraries. When I add the library via "import myLib;" to the transform I do not get any errors in the first Instance, but on execution in the second instance I get the error:
!MESSAGE Cannot find imported compilation unit 'myLib'

Do I have to add the library to e.g. the TransformationExecutor?
Do I have to import the library differently?

Thank you in Advance!
Re: Transformation via Java class: Import Library? [message #1696602 is a reply to message #1696117] Wed, 27 May 2015 13:14 Go to previous message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 115
Registered: April 2011
Senior Member
Hi

Hard to reproduce your setting. What kind of URI do you use in order to make
the TransformationExecutor aware of your transformation file?
platform:/plugin? platform:/resource? file:/...?

Most probably, you should deploy your QVTo project as a plugin, and use the
org.eclipse.m2m.qvt.oml.runtime.qvtTransformationContainer extension point
to declare the source container of that plugin (usually the "transforms"
directory).


Kind regards
Christopher Gerking

"Thomas Busch" schrieb im Newsbeitrag news:mjmijk$upp$1@xxxxxxxxe.org...

Hi,

I have one QVTo-Project in my first Eclipse-Instance. There I have a
transform.qvto and a myLib.qvto.
Another Java-Plugin is in the first instance which will execute that
transform.qvto in a second Eclipse-Instance. This does work very well, as
long as the transform.qvto doesnt import libraries. When I add the library
via "import myLib;" to the transform I do not get any errors in the first
Instance, but on execution in the second instance I get the error:
!MESSAGE Cannot find imported compilation unit 'myLib'

Do I have to add the library to e.g. the TransformationExecutor?
Do I have to import the library differently?

Thank you in Advance!
Previous Topic:applyStereotype() and using uml stereotype
Next Topic:intermediate classes in library?
Goto Forum:
  


Current Time: Wed Apr 24 21:05:47 GMT 2024

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

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

Back to the top