Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Excluding files from an MWE2 workflow
Excluding files from an MWE2 workflow [message #883438] Fri, 08 June 2012 14:30 Go to next message
Andy Gotz is currently offline Andy GotzFriend
Messages: 32
Registered: July 2010
Member
Hi,

in our code generator we would like to exclude certain files from being passed to an MWE2 workflow. This is especially for sub-directories but also certain files otherwise we get errors from the workflow. Yes we know we should not mix manually generated files and code generating but we cannot avoid this (easily).

In the past we used MWE+Xpand and we could use this construct:

<prDefaultExcludes value="false"/> <!-- don't use the build-in set of ignore patterns -->
<prExcludes value="${prExcludes}"/>

Is there an equivalent in MWE2 of prExcludes? If not how to achieve this? Is there a method we can overload?

Thanks

Andy
Re: Excluding files from an MWE2 workflow [message #883442 is a reply to message #883438] Fri, 08 June 2012 14:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13469
Registered: July 2009
Senior Member
Hi it seems you miss up syntax (mwe mwe2) and components(expand
generator xtend2 generator) the extend generator component is not
very advanced so you need to build a lit yourself (even if you were
using mwe1)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Excluding files from an MWE2 workflow [message #883457 is a reply to message #883438] Fri, 08 June 2012 15:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13469
Registered: July 2009
Senior Member
P.s: if you are looking for protected region support in Xtend
https://github.com/danieldietrich/xtext-protectedregions


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Excluding files from an MWE2 workflow [message #883487 is a reply to message #883457] Fri, 08 June 2012 16:37 Go to previous messageGo to next message
Andy Gotz is currently offline Andy GotzFriend
Messages: 32
Registered: July 2010
Member
This is a great project! Yes we are using this already. I will check if I can use the PR file system access class to filter out sub-directories ... thanks for the tip.
Re: Excluding files from an MWE2 workflow [message #894183 is a reply to message #883487] Sat, 07 July 2012 12:38 Go to previous message
Daniel Dietrich is currently offline Daniel DietrichFriend
Messages: 5
Registered: July 2009
Junior Member
Hi all,

the name of the project changed slightly, so the links in this forum are broken. Here is the correct link:

github.com/danieldietrich/xtext-protected-regions (still can't link here :-/)

There is also a new release (2.0.0) which supports Eclipse Juno 4.2 and Xtext/Xtend 2.3.

Also now arbitrary languages are supported with the new 'genericParser' (no additional configuration needed)

- Daniel
Previous Topic:JDTAwareEclipseResourceFileSystemAccess2
Next Topic:Customizing error messages
Goto Forum:
  


Current Time: Sat Jun 06 05:45:18 GMT 2020

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

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

Back to the top