[SOLVED] What is the generated file ".File.dslbin"? [message #1758162] |
Fri, 24 March 2017 08:04 |
|
With my DSL, several hidden files are generated. I have understood the meaning of the "*.java._trace" file.
But something I'm finding hidden files with the ".dslbin" (where "dsl" is the name of my dsl) file extension into the binary folder of my application coded with the DSL.
What is the purpose of this file?
Should I include it in the binary or source jar libraries that I want to create from my project?
I did not find any valuable information on Internet.
Thank you.
All the best.
Stéphane.
[Updated on: Fri, 31 March 2017 15:42] Report message to a moderator
|
|
|
|
|
Re: What is the generated file ".File.dslbin"? [message #1758294 is a reply to message #1758169] |
Mon, 27 March 2017 09:53 |
|
Let the following files exist after my DSL compiler has ran:
- src/mypackage/myscript.dsl
- src-gen/mypackage/MyType.java
- src-gen/mypackage/.MyType.java._trace
- src-gen/mypackage/.myscript.dslbin
- bin/mypackage/MyType.class
I want to create the binary and source Jar files. Am I right by putting the different files as:
- In myprogram-1.0.jar:
- In myprogram-1.0-sources.jar:
- mypackage/myscript.dsl
- mypackage/MyType.java
- mypackage/.MyType.java._trace
- mypackage/.myscript.dslbin
Thank you.
Stéphane.
|
|
|
|
Re: What is the generated file ".File.dslbin"? [message #1758299 is a reply to message #1758297] |
Mon, 27 March 2017 11:29 |
|
The generated content from myscript.dsl, i.e. the MyType.java content does not have any reference to types outside the standard Java API.
The myprogram-1.0.jar library is supposed to be included into the classpath of a third party program.
Assuming that this third party program is also written in a Xtext-based editor, is it a good practice to put the ".dslbin" file into the binary archive and not in the source archive, in order to increase the speed of the Xtext-based editor? Assuming that the source archive is not be given to the editing environment.
Or, is the best practice to put the ".dslbin" file into the source archive, and "force" the third-party programmer to link the binary and source archives in its Eclipse IDE?
All the best.
Stéphane.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03880 seconds