Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Invoking Transformation outside Eclipse - cannot find qvto file
[QVTo] Invoking Transformation outside Eclipse - cannot find qvto file [message #554327] Sat, 21 August 2010 16:43 Go to next message
Simon harrer is currently offline Simon harrerFriend
Messages: 25
Registered: August 2010
Junior Member
Hello,

i tried to run a transformation outside eclipse using java only.

I used the following resources for this:
http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava
http://wiki.eclipse.org/index.php/EMF-FAQ#How_do_I_use_EMF_i n_standalone_applications_.28such_as_an_ordinary_main.29.3F

My problem now is, that by using the following URI the system cannot load the transformation:
URI transformationURI = URI.createURI("file:///mypath\\Simpleuml_To_Rdb.qvto");
		
		TransformationExecutor executor = new TransformationExecutor(transformationURI);

		Diagnostic diagnostic = executor.loadTransformation();
		if(diagnostic.getSeverity() != Diagnostic.OK){
			System.out.println(diagnostic.toString());
			fail("loading of the transformation failed");
		}


Error:
Diagnostic ERROR source=org.eclipse.m2m.qvt.oml.execution code=200 Could not find unit 'file:///mypath\\Simpleuml_To_Rdb.qvto' data=[]

As I run it outside eclipse, i cannot use the platform identifier proposed in the wiki. Do you know a solution to this problem?

Best regards,
Simon
Re: [QVTo] Invoking Transformation outside Eclipse - cannot find qvto file [message #554328 is a reply to message #554327] Sat, 21 August 2010 16:57 Go to previous message
Simon harrer is currently offline Simon harrerFriend
Messages: 25
Registered: August 2010
Junior Member
hm, ok, solved it myself.

just had to use
URI transformationURI = URI.createFileURI("path_without_file\\Simpleuml_To_Rdb.qvto ");
Previous Topic:[QVTo] How to use generics defined in EMF Model
Next Topic:AADL to XML Transformation
Goto Forum:
  


Current Time: Fri Apr 26 05:08:13 GMT 2024

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

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

Back to the top