Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to incrementally building group of files in the project(How to incrementally building group of files in the project)
How to incrementally building group of files in the project [message #1720728] Wed, 20 January 2016 14:49 Go to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
How to incrementally building group of files in the project:
I have project contains three files
a.dsl
b.dsl
c.dsl

Building the project completed successfully.

I need to rebuild group of them again, as an exmple i need to build (b.dsl and c.dsl) again, without any change in them

I mean i did not change anything in both of them.
How to perform such task?
Thanks
Re: How to incrementally building group of files in the project [message #1720794 is a reply to message #1720728] Thu, 21 January 2016 05:27 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
If you are under Eclipse, you may try "Clean..." from the Pulldown Menu "Project "

[Updated on: Thu, 21 January 2016 05:28]

Report message to a moderator

Re: How to incrementally building group of files in the project [message #1720897 is a reply to message #1720794] Thu, 21 January 2016 17:37 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
I am under Eclipse, but i am sorry i did not get your point

[Updated on: Thu, 21 January 2016 17:37]

Report message to a moderator

Re: How to incrementally building group of files in the project [message #1720898 is a reply to message #1720897] Thu, 21 January 2016 17:46 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Can you explain what should cause the rebuild

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1720900 is a reply to message #1720898] Thu, 21 January 2016 17:50 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
I have introduced new item in popup menu of any file in project explorer, this menu item name is "rebuild".
So all what i need is to rebuild the selected files again, even if there is no change in them
Re: How to incrementally building group of files in the project [message #1720908 is a reply to message #1720900] Thu, 21 January 2016 18:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
hi i would do this on a different level
have a look at the javadoc of org.eclipse.core.resources.IResource.touch(IProgressMonitor)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721072 is a reply to message #1720897] Sat, 23 January 2016 09:47 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
kimi raikonnan wrote on Thu, 21 January 2016 12:37
I am under Eclipse, but i am sorry i did not get your point

AFAIK, the "Clean..." will cause a rebuild of all generated files
Re: How to incrementally building group of files in the project [message #1721230 is a reply to message #1721072] Mon, 25 January 2016 23:51 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
Hi Christian, I think your solution is great but the problem will not be fixed completely as i have another option in the menu which could exclude any file from the build.
I mean that i have another menu item to exclude any file from the design, so after clicking on this menu item xtextbuilder should be invoked and this file should appear in toBeBuilt variable in incremental build method in xtextbuilder to be removed, as if i am removing the file completely from the project but i am not.

Hi Uli Merkel, clean the project will be the wrong solution specially with big designs, can we clean only the selected files ?

Re: How to incrementally building group of files in the project [message #1721231 is a reply to message #1721230] Tue, 26 January 2016 04:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Resourceserviceprovider.canhandle

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721232 is a reply to message #1721231] Tue, 26 January 2016 04:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Nur that would requiriert a clean Build i think

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721233 is a reply to message #1721232] Tue, 26 January 2016 04:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
Another question. What is the reason to exclude?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721271 is a reply to message #1721233] Tue, 26 January 2016 09:04 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
In Lorenzo Bettinis famous book near the end of chapter 7, there is something about unit-testing eclipse functionality like opening editors etc.
Perhaps this may give you some hint how you con start re-generation for some DSL files.


And at the very end of chapter 5, there are some instructions how to get a "standalone command-line compiler" which takes the DSL file path as an argument for the generator.
So it's just a one-liner in a batch command file


Greetings from Frankfurt/Germany,
Uli

[Updated on: Tue, 26 January 2016 13:34]

Report message to a moderator

Re: How to incrementally building group of files in the project [message #1721536 is a reply to message #1721271] Thu, 28 January 2016 07:35 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
I think i dont need new build because removing file from project invoke incremental build, right?
I need to perform an action similar to the one performed by removing a file from a project.
Because clean build will be so expensive
Re: How to incrementally building group of files in the project [message #1721537 is a reply to message #1721536] Thu, 28 January 2016 08:11 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
what is the reason to exclude a file?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721544 is a reply to message #1721537] Thu, 28 January 2016 09:07 Go to previous messageGo to next message
kimi raikonnan is currently offline kimi raikonnanFriend
Messages: 145
Registered: June 2015
Senior Member
Used to remove data model of this file from the design and invalidate links referring to this file , because of different reasons (Because its big design as an example and i want to exclude it)

But i should be able to add or remove it while project is up and running

[Updated on: Thu, 28 January 2016 09:08]

Report message to a moderator

Re: How to incrementally building group of files in the project [message #1721549 is a reply to message #1721544] Thu, 28 January 2016 09:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
What about using Ifile.touch in combination with a resource marker that prevents the file being indexed in defaulteesourcedescriptionstrategy

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to incrementally building group of files in the project [message #1721611 is a reply to message #1721536] Thu, 28 January 2016 15:36 Go to previous message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
kimi raikonnan wrote on Thu, 28 January 2016 02:35

I need to perform an action similar to the one performed by removing a file from a project.


What about just removing the file to get the party started?
Previous Topic:Content of "Resource" in doGenerate method.
Next Topic:Reference to static field instances
Goto Forum:
  


Current Time: Mon Sep 20 15:30:42 GMT 2021

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

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

Back to the top