[Xpand] Running Xpand Workflow via Equinox Launcher [message #989531] |
Thu, 06 December 2012 16:23 |
Dale Pennington Messages: 6 Registered: November 2012 |
Junior Member |
|
|
I have a workflow that works with Xpand and does of fine job of generating the code I need when I run it from within the Eclipse Workbench (the usual right click/Run As).
But we want to run from console (actually a build script) as this is only part of a larger product build. While the doc does give the WorkflowRunner class, to run it directly requires setting up a classpath to a large number of jars in the eclipse/plugins directory, which we would prefer to avoid.
So instead I tried to use the Eclipse Equinox Launcher. The command line I used was :
java -jar /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -application org.eclipse.emf.mwe.core.WorkflowRunner src/workflow/ddmGenerator.mwe
This seems to launch the Workflow OK, and we get through the load ecore steps, when we get to Check (which does no actual checks, but works OK within Workbench), we fail on null pointer exception that appears to be deep inside the component code (log file attached).
So, the question is, has anyone successfully used Equinox to run an Xpand workflow? Or have then done the base standalone with a hand generated classpath ?
Thanks for your time
Dale Pennington
-
Attachment: log
(Size: 5.49KB, Downloaded 240 times)
|
|
|
|
Re: [Xpand] Running Xpand Workflow via Equinox Launcher [message #989579 is a reply to message #989542] |
Thu, 06 December 2012 20:20 |
Dale Pennington Messages: 6 Registered: November 2012 |
Junior Member |
|
|
You know, I tried the runnable jar file wizard, but stalled on step 2, as there were no options under Launch Configuration.
As far as I can tell, what I should be exporting is runner, not my Xpand project. Also that still leaves future issues of what I need to check into the CM system and what I edit (which should be under CM) when modifing stuff.
Part of it is understanding what the workflow needs actually, and what is also being done for me under the covers by Eclipse. I suspect my issue is the standalone run is not doing the Eclipse special helping steps (like compiling the java extensions into a .class file).
I am going to attempt to do the standalone option, just to see if I get the same issue (i.e. the logged error seemed to hit in the workflow, not the launcher, so I suspect my problem is at a lower level).
Dale
|
|
|
|
Re: [Xpand] Running Xpand Workflow via Equinox Launcher [message #989780 is a reply to message #989581] |
Fri, 07 December 2012 17:32 |
Dale Pennington Messages: 6 Registered: November 2012 |
Junior Member |
|
|
Yep, I got it to run standalone OK. The next step is to find all the command line parameters.
The workflow file is easy, and the docs mention -p to override the properties (the sample appears to be -p<prop name>=<overridevalue>. But it does not mention how to override the process monitor. The default you get seems to be printing debug oriented data, and I would prefer to use the no output one (I think its the NullProcessMonitor). Any ideas on where that level of documentation is ?
Dale
Expansion on the above. I appear to have run into a quick with the properties options. Following the example in the documentation, I used
java -cp <classpath> org.eclipse.emf.mwe.core.WorkflowRunner -pkey=newvalue workflow.mwe
It turns out that the -p option needs to follow the workflow file, otherwise you get a wrong parameter syntax error. Figured adding to what is know cannot hurt.
[Updated on: Fri, 07 December 2012 17:47] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03628 seconds