[Acceleo] Standalone application running error [message #755965] |
Thu, 10 November 2011 10:51 |
Valerian Merkling Messages: 71 Registered: May 2011 |
Member |
|
|
Hi !
I need to be able to put all my acceleo project in a runnable jar file, i've some problem with it.
I made a main class preparing data for Acceleo, and then i call the Generate.main function from the acceleo part of the project.
Inside Eclipse, i can run it, and everythings work correctly.
If i try to export it in a .jar, after copying every .emlt file, i've got this error
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.IllegalArgumentException: invalid relative pathName: rsrc:I
mmoFimNav/gen/main/generate.emtl
at org.eclipse.emf.common.util.URI.createFileURI(URI.java:856)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.createTem
plateURI(AbstractAcceleoGenerator.java:673)
at org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initializ
e(AbstractAcceleoGenerator.java:446)
at ImmoFimNav.gen.main.Generate.<init>(Generate.java:94)
at ImmoFimNav.gen.main.Generate.main(Generate.java:141)
at program.Launcher.main(Launcher.java:104)
... 5 more
Odd is when i try to debug it in Eclipse, instead of "rsrc:ImmoFimNav/gen/main/generate.emtl", the function is only entered for "data/portal.fim", which is the model that acceleo have to read to generate my output.
Can anyone help me ?
Thanks!
[Updated on: Thu, 10 November 2011 15:25] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04433 seconds