Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Getting root project absolute path
Getting root project absolute path [message #1384167] Wed, 28 May 2014 09:52 Go to next message
Guy H is currently offline Guy HFriend
Messages: 3
Registered: April 2014
Junior Member
Hi All,

I've created a DSL and I'm using the xtext-maven-plugin to generate my source files using maven.
I need to write a validator that should validate the existence of several files on the project root folder(e.g. parent folder of the default src-gen folder)

How can I get the root project absolute path?

Re: Getting root project absolute path [message #1384184 is a reply to message #1384167] Wed, 28 May 2014 10:48 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13530
Registered: July 2009
Senior Member
Hi i don't know of such a possibility. Maybe you can as a workaround
inject a ifilesystemaccess and downcast it to
ifilesystemaccessextension2 and use the uri you can obtain there to
find out the location.

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Customization of NamesAreUniqueValidator
Next Topic:xpand version from the xtext releases repository
Goto Forum:

Current Time: Sat Aug 15 01:42:07 GMT 2020

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

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

Back to the top