|Re: MOFScript:generate output with the same filename as the source file [message #580276 is a reply to message #580252]
||Tue, 02 March 2010 09:00
| Gøran K. Olsen
Registered: July 2009
currently there are no buildt in support for getting the file name of a
given source model.
However it is always possible to do using the "black-box" java
functionality, e.g. writing a java class with an operation that retreives
the file name from for example an EObject.
If you are calling the transformation using the Java API it should also be
quite simple to get the name and using for example
setenv: Sets an environment variable. Equivalent to Java
then you could use the
getenv: Gets an environment variable. Equivalent to Java
in your transformation.
Powered by FUDForum
. Page generated in 0.01694 seconds