Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Force incremental build
Force incremental build [message #1799038] Thu, 29 November 2018 09:16 Go to next message
Elen Mouner is currently offline Elen MounerFriend
Messages: 13
Registered: November 2018
Junior Member
Hi ,

After editing and saving file , it will be built automatically.
How can I force parsing (building) list of unmodified files

Thanks
Re: Force incremental build [message #1799072 is a reply to message #1799038] Thu, 29 November 2018 14:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
you can have a look at org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager.isAffected(Collection<Delta>, IResourceDescription, IResourceDescriptions)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Force incremental build [message #1799078 is a reply to message #1799038] Thu, 29 November 2018 14:45 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Or just do a full build.
Re: Force incremental build [message #1799079 is a reply to message #1799038] Thu, 29 November 2018 15:00 Go to previous messageGo to next message
Elen Mouner is currently offline Elen MounerFriend
Messages: 13
Registered: November 2018
Junior Member
In my case , there is no change in project files "no Delta" (so autoBuild will not detect any changed resource)
and some times I want to rebuild some files in big project (so full build will not be optimal solution)
Re: Force incremental build [message #1799086 is a reply to message #1799079] Thu, 29 November 2018 15:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
what is the critera that should trigger the change?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Force incremental build [message #1799087 is a reply to message #1799086] Thu, 29 November 2018 15:59 Go to previous messageGo to next message
Elen Mouner is currently offline Elen MounerFriend
Messages: 13
Registered: November 2018
Junior Member
command that re-parse selected resources
Re: Force incremental build [message #1799090 is a reply to message #1799087] Thu, 29 November 2018 16:28 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Then create a command that touches the selected resources.
Re: Force incremental build [message #1799092 is a reply to message #1799090] Thu, 29 November 2018 16:46 Go to previous messageGo to next message
Elen Mouner is currently offline Elen MounerFriend
Messages: 13
Registered: November 2018
Junior Member
I tried something like that :
for (IResource resoure :resourceList) {
resoure.touch(null);
}
but it didn't work fine with me in all cases, some times incremental build (invoked by autoBuildJob) was interrupted by another one
It is there another way to touch a bulk of resources in single Job ?
Re: Force incremental build [message #1799103 is a reply to message #1799092] Thu, 29 November 2018 17:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
Registered: July 2009
Senior Member
Simply use a workspace job. But I still wonder what the criteria for a rebuild is

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Force incremental build [message #1799104 is a reply to message #1799103] Thu, 29 November 2018 18:14 Go to previous message
Elen Mouner is currently offline Elen MounerFriend
Messages: 13
Registered: November 2018
Junior Member
something like reloading selected files
Previous Topic:annotationRef with String attribute as a static filed
Next Topic:Optional properties using XText
Goto Forum:
  


Current Time: Fri Apr 26 23:06:49 GMT 2024

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

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

Back to the top