Skip to main content



      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 09:49 Go to next message
Eclipse UserFriend
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 00:27 Go to previous messageGo to next message
Eclipse UserFriend
If you are under Eclipse, you may try "Clean..." from the Pulldown Menu "Project "

[Updated on: Thu, 21 January 2016 00:28] by Moderator

Re: How to incrementally building group of files in the project [message #1720897 is a reply to message #1720794] Thu, 21 January 2016 12:37 Go to previous messageGo to next message
Eclipse UserFriend
I am under Eclipse, but i am sorry i did not get your point

[Updated on: Thu, 21 January 2016 12:37] by Moderator

Re: How to incrementally building group of files in the project [message #1720898 is a reply to message #1720897] Thu, 21 January 2016 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Can you explain what should cause the rebuild
Re: How to incrementally building group of files in the project [message #1720900 is a reply to message #1720898] Thu, 21 January 2016 12:50 Go to previous messageGo to next message
Eclipse UserFriend
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 13:27 Go to previous messageGo to next message
Eclipse UserFriend
hi i would do this on a different level
have a look at the javadoc of org.eclipse.core.resources.IResource.touch(IProgressMonitor)
Re: How to incrementally building group of files in the project [message #1721072 is a reply to message #1720897] Sat, 23 January 2016 04:47 Go to previous messageGo to next message
Eclipse UserFriend
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 18:51 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 25 January 2016 23:03 Go to previous messageGo to next message
Eclipse UserFriend
Resourceserviceprovider.canhandle
Re: How to incrementally building group of files in the project [message #1721232 is a reply to message #1721231] Mon, 25 January 2016 23:06 Go to previous messageGo to next message
Eclipse UserFriend
Nur that would requiriert a clean Build i think
Re: How to incrementally building group of files in the project [message #1721233 is a reply to message #1721232] Mon, 25 January 2016 23:08 Go to previous messageGo to next message
Eclipse UserFriend
Another question. What is the reason to exclude?
Re: How to incrementally building group of files in the project [message #1721271 is a reply to message #1721233] Tue, 26 January 2016 04:04 Go to previous messageGo to next message
Eclipse UserFriend
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 08:34] by Moderator

Re: How to incrementally building group of files in the project [message #1721536 is a reply to message #1721271] Thu, 28 January 2016 02:35 Go to previous messageGo to next message
Eclipse UserFriend
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 03:11 Go to previous messageGo to next message
Eclipse UserFriend
what is the reason to exclude a file?
Re: How to incrementally building group of files in the project [message #1721544 is a reply to message #1721537] Thu, 28 January 2016 04:07 Go to previous messageGo to next message
Eclipse UserFriend
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 04:08] by Moderator

Re: How to incrementally building group of files in the project [message #1721549 is a reply to message #1721544] Thu, 28 January 2016 04:20 Go to previous messageGo to next message
Eclipse UserFriend
What about using Ifile.touch in combination with a resource marker that prevents the file being indexed in defaulteesourcedescriptionstrategy
Re: How to incrementally building group of files in the project [message #1721611 is a reply to message #1721536] Thu, 28 January 2016 10:36 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 14:36:30 EDT 2025

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

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

Back to the top