Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Force incremental build
Force incremental build [message #1799038] Thu, 29 November 2018 04:16 Go to next message
Eclipse UserFriend
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 09:06 Go to previous messageGo to next message
Eclipse UserFriend
you can have a look at org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager.isAffected(Collection<Delta>, IResourceDescription, IResourceDescriptions)
Re: Force incremental build [message #1799078 is a reply to message #1799038] Thu, 29 November 2018 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Or just do a full build.
Re: Force incremental build [message #1799079 is a reply to message #1799038] Thu, 29 November 2018 10:00 Go to previous messageGo to next message
Eclipse UserFriend
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 10:55 Go to previous messageGo to next message
Eclipse UserFriend
what is the critera that should trigger the change?
Re: Force incremental build [message #1799087 is a reply to message #1799086] Thu, 29 November 2018 10:59 Go to previous messageGo to next message
Eclipse UserFriend
command that re-parse selected resources
Re: Force incremental build [message #1799090 is a reply to message #1799087] Thu, 29 November 2018 11:28 Go to previous messageGo to next message
Eclipse UserFriend
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 11:46 Go to previous messageGo to next message
Eclipse UserFriend
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 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Simply use a workspace job. But I still wonder what the criteria for a rebuild is
Re: Force incremental build [message #1799104 is a reply to message #1799103] Thu, 29 November 2018 13:14 Go to previous message
Eclipse UserFriend
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: Sat Jun 21 05:02:22 EDT 2025

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

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

Back to the top