Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Headless PDE build with Xtext?
Headless PDE build with Xtext? [message #637325] Fri, 05 November 2010 04:53 Go to next message
No real name is currently offline No real nameFriend
Messages: 101
Registered: August 2010
Senior Member
Hi,

My plugins are ready and now I want to create a complete Eclipse product. I have created a Product configuration file and if I do a manual export, I can create a product with my xtext editor.

I'm trying to create a headless pde build (following this tutorial: http://www.vogella.de/articles/EclipsePDEBuild/article.html) but it is not working. The main issues is its complaning about the metal model java files not being present (even through I ran the .mwe2 flow manually) from the .xtext file not being available.

Does anyone have a small example of a PDE build with xtext? Is this even possible?

Thank you for any ideas.

Re: Headless PDE build with Xtext? [message #637431 is a reply to message #637325] Fri, 05 November 2010 13:15 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Did you add the emf-gen folder properly as a source folder in
build.properties?

Am 05.11.10 05:54, schrieb pgbackup@yahoo.com:
> Hi,
>
> My plugins are ready and now I want to create a complete Eclipse
> product. I have created a Product configuration file and if I do a
> manual export, I can create a product with my xtext editor.
>
> I'm trying to create a headless pde build (following this tutorial:
> http://www.vogella.de/articles/EclipsePDEBuild/article.html) but it is
> not working. The main issues is its complaning about the metal model
> java files not being present (even through I ran the .mwe2 flow
> manually) from the .xtext file not being available.
> Does anyone have a small example of a PDE build with xtext? Is this even
> possible?
>
> Thank you for any ideas.
>
>


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Headless PDE build with Xtext? [message #637475 is a reply to message #637431] Fri, 05 November 2010 17:19 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 101
Registered: August 2010
Senior Member
Hi Jan,

Thank you for your help. Here is how my build.properties file looks like for the grammar folder (org.xtext.example.MyDSL). It looks OK to me. I'm not aware of any folder called "emf-gen"? The .mwe2 file generates stuff in the src-gen folder.

Quote:

source.. = src/,\
src-gen/
bin.includes = META-INF/,\
.,\
plugin.xml
bin.excludes = META-INF/.svn/




Thanks
Re: Headless PDE build with Xtext? [message #637689 is a reply to message #637475] Mon, 08 November 2010 11:03 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Are you using a generated or an imported metamodel?

If it's generated, you should have a EcoreGeneratorFragment in your
workflow that will call the EMF generator to create EMF classes from the
Ecore model in a folder called emf-gen. This one must be listen in the
build.properties as src folder.

If it's imported, make sure you have the generated EMF code and add a
(reexported) dependency from the Xtext to the plug-in containing the
code. Make also sure the EMF plug-in exports the Java packages.

Xtext does not support dynamic EMF.

Am 05.11.10 18:19, schrieb pgbackup@yahoo.com:
> Hi Jan,
>
> Thank you for your help. Here is how my build.properties file looks like
> for the grammar folder (org.xtext.example.MyDSL). It looks OK to me. I'm
> not aware of any folder called "emf-gen"? The .mwe2 file generates stuff
> in the src-gen folder.
>
> Quote:
>> source.. = src/,\
>> src-gen/
>> bin.includes = META-INF/,\
>> .,\
>> plugin.xml
>> bin.excludes = META-INF/.svn/
>
>
> Thanks


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Using a DSL for persistence only?
Next Topic:Parsing Arrays
Goto Forum:
  


Current Time: Fri Apr 26 13:14:57 GMT 2024

Powered by FUDForum. Page generated in 0.05946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top