[EMFTVM] Path to import modules [message #1130041] |
Wed, 09 October 2013 07:09 |
Javier García Messages: 129 Registered: April 2013 |
Senior Member |
|
|
Hi all,
I wanted to know how exactly does module importation work in EMFTVM, I've read the information provided here ( http://wiki.eclipse.org/ATL/EMFTVM#Module_import )and I'm still not sure if what I want can be done.
My package structure goes like this:
1 - ATLTesting
1.1 - EMFTVM
1.1.1 - Transformations
1.1.1.1 - Transformation1
1.1.1.1.1 - Transformation1.atl
1.1.1.2 - Transformation2
1.1.1.2.1 - Transformation2.atl
1.1.1.3 - Transformation3
1.1.1.3.1 - Transformation3.atl
1.1.1.4 - Libraries
1.1.1.4.1 - Library.atl
Now I want to access from all my transformations the same library. I've seen that I could do that if all the transformations and libraries were in the same folder, but could it be possible to use the library keeping this folder structure? And how would I have to do it?
Right now my only solution was to copy the same libraries folder to each transformation folder (and then call it using uses "Libraries::UMLLibrary"; ), which works fine but isn't what I want.
Thanks in advance,
regards,
Javier
[Updated on: Wed, 09 October 2013 07:53] Report message to a moderator
|
|
|
Re: [EMFTVM] Path to import modules [message #1130122 is a reply to message #1130041] |
Wed, 09 October 2013 08:44 |
|
Your module names should include the package structure:
module "ATLTesting::EMFTVM::Transformations::Transformation1::Transformation1"
module "ATLTesting::EMFTVM::Transformations::Transformation2::Transformation2"
module "ATLTesting::EMFTVM::Transformations::Transformation3::Transformation3"
module "ATLTesting::EMFTVM::Libraries::Library"
Or you could leave out the common prefix:
module "Transformations::Transformation1::Transformation1"
module "Transformations::Transformation2::Transformation2"
module "Transformations::Transformation3::Transformation3"
module "Libraries::Library"
In the "uses" clause, you refer to the other modules/libraries by their fully qualified name.
Cheers,
Dennis
|
|
|
|
Powered by
FUDForum. Page generated in 0.03674 seconds