|
Re: Hand over properties from Maven to MWE2 Workflow Descriptor [message #658882 is a reply to message #658798] |
Thu, 10 March 2011 09:48 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi,
-p paramName=paramValue should work as arguments to the java main method
of the Mwe2Launcher.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 09.03.11 20:52, schrieb lgprime@web.de:
> Hi all,
> I recently managed to integrate and build my XText 1.0.1 project(s) with
> Maven, by using the Fornax 3.2.0 M2 Plugin. However, I now need to "hand
> over" some project-specific settings (or rather "variables") from my
> Maven settings file to the MWE2 workflow execution. So basically, I want
> some variables in my MWE2 workflow descriptor (like the "path.src.gen"
> and the "path.src.gen.subdir" variable in the example below) to be set
> with values from my "pom.xml".
> component = org.eclipse.xpand2.Generator {
> expand = "test::Template::main FOR model"
> outlet = {
> path = "${path.src.gen}/${path.src.gen.subdir}"
> }
> fileEncoding = "UTF-8"
> }
>
> After having searched the web and played around with several different
> approaches (e.g. to provide corresponding properties in the Fornax
> plugin's configuration section; or to let Maven create a properties file
> next to the MWE2 workflow descriptor file) which all did not work, I
> totally ran out of ideas. So I would be very happy about any information
> of how to "hand over" and read properties/variables from Maven (or at
> least, from a properties file) into a MWE2 workflow descriptor.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03907 seconds