Community
Participate
Working Groups
Build Identifier: It would be nice if the Xpand language had an INCLUDE statement to include boilderplate text like copyright and licence text. Even nicer would it be if the included text is parsed for Xpand statements. Reproducible: Always Steps to Reproduce: N/A
I'm not sure if this would be realized. We try to keep the language as small as possible and don't introduce concepts that could be solved with existing means. In this case, this could be solved (and is so in many projects) by providing an Xtend function that does the job. You could even call the XpandFacade in this function, which would solve your second need. But maybe it would be a good idea to add such a function to stdlib?
@Karsten: Could you outline briefly what you are going to do here?
I would add extensions to org::eclipse::xtend::util::stdlib::io named "includeFile": String includeFile (String filePath, String encoding) String includeFile (String filePath) In Xpand it could be used like this: «EXTENSION org::eclipse::xtend::util::stdlib::io» ... «includeFile("header.txt")»
I see sounds good.
Added with changeset 10f89fbae927c8ecd0e3e8e35f819cda98ea0062
You may want to use the value of the coding parameter.
Fixed
Requested via bug 522520. -M.