Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext maven plugin language order(Language generation order by xtext-maven-plugin)
Xtext maven plugin language order [message #1802957] Tue, 19 February 2019 16:12
Emerson Kopp is currently offline Emerson KoppFriend
Messages: 1
Registered: February 2019
Junior Member
Hello,

I'm working on the development of a language (B) that depends on some information generated in runtime by another language (A). So I need the generation of language A to occur before the generation of language B. I have a project that uses the xtext-maven-plugin configured with the two languages:

<plugin>
	<groupId>org.eclipse.xtext</groupId>
	<artifactId>xtext-maven-plugin</artifactId>
	<version>2.10.0</version>
	<executions>
		<execution>
			<id>generate-dsl-sources</id>
			<phase>generate-sources</phase>
			<goals>
				<goal>generate</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<languages>
			
			<!-- Language A -->
			<language>
				<setup>com.example.AStandaloneSetup</setup>
				<outputConfigurations>
					<outputConfiguration>
						<outputDirectory>src/main/generated-sources/xtend/</outputDirectory>
					</outputConfiguration>
				</outputConfigurations>
			</language>

			<!-- Language B -->
			<language>
				<setup>com.example.BStandaloneSetup</setup>
				<outputConfigurations>
					<outputConfiguration>
						<outputDirectory>src/main/generated-sources/xtend/</outputDirectory>
					</outputConfiguration>
				</outputConfigurations>
			</language>
			
		</languages>
	</configuration>
	<!-- dependencies... -->
</plugin>


But the generation of these languages ​​by maven is performed in random order. Is there any way to ensure that the generation of language A is executed before the generation of language B?
Previous Topic:Overriding Rules - Erroneos Generated Interfaces
Next Topic:BuilderDeltaConverter leaks JDT JavaModelCache.childrenCache
Goto Forum:
  


Current Time: Thu Oct 24 02:46:42 GMT 2019

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

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

Back to the top