|
Re: MOFScript:generate output with the same filename as the source file [message #580276 is a reply to message #580252] |
Tue, 02 March 2010 14:00  |
Eclipse User |
|
|
|
Hello Ye,
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
System.setProperty().
then you could use the
getenv: Gets an environment variable. Equivalent to Java
System.getProperty()..
in your transformation.
Cheers,
G
|
|
|
Powered by
FUDForum. Page generated in 0.04082 seconds