Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "LDT/User Area/Execution Environment file format"
(→File structure) |
(→File structure) |
||
Line 21: | Line 21: | ||
<code>docs</code> is a ''folder'' containing <code>html</code> documentation files. <code>index.html</code> is the file opened by LDT when user ask for EE documentation. | <code>docs</code> is a ''folder'' containing <code>html</code> documentation files. <code>index.html</code> is the file opened by LDT when user ask for EE documentation. | ||
− | <code>*.rockspeck</code> enable to specify information about an EE, it is strongly inspired by the [http://luarocks.org/en/Rockspec_format Rockspeck format]. So far, | + | <code>*.rockspeck</code> enable to specify information about an EE, it is strongly inspired by the [http://luarocks.org/en/Rockspec_format Rockspeck format]. So far, following fields have been added to match LDT needs: |
+ | *<code>api</code> | ||
+ | *<code>documentation</code> | ||
+ | *<code>flags</code> | ||
You may have noticed that <code>api.file</code> is set to <code>'api.zip'</code> and <code>documentation.dir</code> to <code>'docs'</code>. '''Do not change''' those values in the *.rockspec you write, it will have '''no effect'''.<br/> | You may have noticed that <code>api.file</code> is set to <code>'api.zip'</code> and <code>documentation.dir</code> to <code>'docs'</code>. '''Do not change''' those values in the *.rockspec you write, it will have '''no effect'''.<br/> | ||
'''As I am writing, all parameters are hard coded, except:''' | '''As I am writing, all parameters are hard coded, except:''' |
Revision as of 05:38, 12 July 2012
Execution Environment
An Execution Environment, which may also be referred to as EE, is file containing information about the environment where a Lua application could run. You can create your own custom EE, there are just a few rules to follow the type of the file and its inner structure.
File format
An EE is simply a regular .zip file.
File structure
To be a valid EE, a ZIP file root must respect the following tree structure.
-
/
-
api.zip
-
docs/
-
index.html
-
-
*.rockspeck
-
api.zip
is a regular ZIP archive containing Lua source files documented with the right format.
docs
is a folder containing html
documentation files. index.html
is the file opened by LDT when user ask for EE documentation.
*.rockspeck
enable to specify information about an EE, it is strongly inspired by the Rockspeck format. So far, following fields have been added to match LDT needs:
api
documentation
flags
You may have noticed that api.file
is set to 'api.zip'
and documentation.dir
to 'docs'
. Do not change those values in the *.rockspec you write, it will have no effect.
As I am writing, all parameters are hard coded, except:
-
package
-
version
It is temporary, we will soon handle all *.rockspec settings. This why you must write valid *.rockspec to be compliant with up coming versions of LDT.
A sample of EE manifest
package = "lua"
version = "5.1"
flags = { sdk = true }
description = {
summary = "Sierra Wireless AAF"
detailed = [[ Sierra Wireless AAF ]]
licence = "Sierra Wireless"
homepage= "www.seirrawireless.com"
}
api = {
file = "api.zip"
}
documentation ={
dir="docs"
}