Version 10 (modified by pavlina, 17 years ago) (diff) |
---|
Analysis
Overview
- The app plug-in is the main plug-in of Sophie 2.0.
- It actually starts the application.
- It is used in all editions of Sophie 2.0.
- It is responsible for configuration reading and loading of other parts of the application.
Task requirements
- Extract a module containing the startup code.
- The module must be usable by all editions of Sophie 2.0 (loadable by OSGI)
- Make sure that it is used in already defined Sophie 2.0 editions.
- It should read configuration files.
Task result
The result of this task is source code.
Implementation idea
- Make a new module containing the Main class.
Related
PLUGIN_EDITIONS_STRUCTURE_R0
PLUGIN_EDITIONS_STRUCTURE_R1
How to demo
- Show what's done during startup
- Show how the plug-in is used in different editions.
Design
- make a new module with name org.sophie2.launcher for example
- it must have Main class which runs various editions depends on given command line arguments
- the default edition must be the author edition
Implementation
- the launcher module was created
- the bundles.config files were created for the author and the server editions. They contain the bundles to be loaded by the Felix Framework. If you add a bundle you should also add it in the config file.
- The launcher run configuration was created. It runs the Author edition. If you want to run the other editions you should edit it by making the working directory to be the directory where the edition is located. For now it is possible to run only the author, because the server is not properly configured yet.
- the Activator class in the author was deleted while it is not needed anymore.
- The revisions will be pointed after the review is finished and the code is commited.
Testing
Comments
Log