Differences
This shows you the differences between two versions of the page.
|
soloistconfiguration [2011/06/29 15:17] milorad.poptosic [Complete soloist-config.xml Example] |
soloistconfiguration [2011/07/03 23:25] (current) milorad.poptosic [Model files] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The easiest way to edit this file is from an IDE (such as Eclipse) with autocomplete. | The easiest way to edit this file is from an IDE (such as Eclipse) with autocomplete. | ||
| + | |||
| ===== Referenced Database ===== | ===== Referenced Database ===== | ||
| RDBMS (Relational Database Management System) to be used in project is configured by way of an rdmbs tag. The tag contains an attribute dbPropFile which specifies the database configuration file with all the details about the database (in is named db.properties by default). For more details on how to write this file, see [[DatabaseConfiguration|Database Configuration]]. | RDBMS (Relational Database Management System) to be used in project is configured by way of an rdmbs tag. The tag contains an attribute dbPropFile which specifies the database configuration file with all the details about the database (in is named db.properties by default). For more details on how to write this file, see [[DatabaseConfiguration|Database Configuration]]. | ||
| Line 10: | Line 11: | ||
| <rdbms dbPropFile="mysql_db.properties">mysql</rdbms> | <rdbms dbPropFile="mysql_db.properties">mysql</rdbms> | ||
| </file> | </file> | ||
| + | |||
| ===== Model files ===== | ===== Model files ===== | ||
| As model-driven development framework, SOLoist needs to reference one or more files containing the domain model. These models are written in [[http://en.wikipedia.org/wiki/XML_Metadata_Interchange|XMI (XML Metadata Interchange)]] files, which are generated by the modeling tool (currently StarUML). | As model-driven development framework, SOLoist needs to reference one or more files containing the domain model. These models are written in [[http://en.wikipedia.org/wiki/XML_Metadata_Interchange|XMI (XML Metadata Interchange)]] files, which are generated by the modeling tool (currently StarUML). | ||
| - | These XMI files sholud be configured with model-files tag. | + | These XMI files should be configured with model-files tag. |
| <file xml> | <file xml> | ||
| <model-files> | <model-files> | ||
| + | <xmi-file>soloist.xmi</xmi-file> | ||
| <xmi-file>domainmodel.xmi</xmi-file> | <xmi-file>domainmodel.xmi</xmi-file> | ||
| </model-files> | </model-files> | ||
| </file> | </file> | ||
| + | The path to the XMI file is resolved against file-system first, then against Java's classpath. | ||
| ===== File Repository ===== | ===== File Repository ===== | ||
| - | SOLoist stores files created and uploaded to the application inside a directory which is called the file repository. It is necessary to configure an absolute path to this directory. | + | SOLoist stores instances of the data-type File inside a directory which is called the file repository. It is necessary to configure an absolute path to this directory. |
| To do so, you should use the file-repository tag, as in the examples below. | To do so, you should use the file-repository tag, as in the examples below. | ||
| Line 30: | Line 34: | ||
| <file-repository>/home/user/soloist/repository</file-repository> | <file-repository>/home/user/soloist/repository</file-repository> | ||
| </file> | </file> | ||
| - | The file repository can be any directory, so long as it is empty. | ||
| ===== Internationalization and Localization ===== | ===== Internationalization and Localization ===== | ||
| SOLoist has a full support for [[internationalizationandlocalization|internationalization and localization]] which means supporting multiple languages. The default-locale tag sholud be used for setting the default locale for SOLoist applications. | SOLoist has a full support for [[internationalizationandlocalization|internationalization and localization]] which means supporting multiple languages. The default-locale tag sholud be used for setting the default locale for SOLoist applications. | ||
| Line 59: | Line 62: | ||
| ===== Complete soloist-config.xml Example ===== | ===== Complete soloist-config.xml Example ===== | ||
| + | Below is the complete soloist-config.xml from the Empty Project. | ||
| + | |||
| <file xml soloist-config.xml> | <file xml soloist-config.xml> | ||
| <?xml version="1.0"?> | <?xml version="1.0"?> | ||
| <soloist-config> | <soloist-config> | ||
| - | |||
| - | <rdbms dbPropFile="db.properties">mysql</rdbms> | ||
| <file-repository>d:/temp/repository</file-repository> | <file-repository>d:/temp/repository</file-repository> | ||