Each DEX is stored in its own directory within a Context.
The name of directory is the DEX identifier.
<<dex-id>>
. (See PLCSlib structure)
plcslib\data\contexts\<<context-id>>\dexs\<<dex-id>>
Each DEX directory contains files specific to that DEX.
The DEX directory and associated file structure are created by using an ANT build process. This process makes use of the same ANT tool that is used to build PLCSlib itself.
In order to use the tool for creating a new DEX, first open up a command window
(e.g. "cmd" on windows), navigate to the plcslib\utils\xml_templates
directory in your
PLCSlib installation and then run the command :
ant mk-dex
The tool will prompt you for the Identifier of the Context that the DEX is to be created in, as well as the Identifier and Name of the DEX itself.
The ANT script will generate following folders under:
plcslib\data\contexts\<<context-id>>\dexs\<<dex-id>>
dvlp
images
test_data
and following files:
dex.xml
release_notes.xml
Once the DEX has been created, it will need to be added to the list of DEXs available
in that Context.
If the DEX has been created in the Context <<context-id>>
, then the existence
of the DEX will have to be entered into the file:
plcslib\data\contexts\<<context-id>>\context_index.xml
Particular care needs to be taken that the Identifier inserted into the record in this file matches that given to the ANT script in the previous step