Last page update: November 23, 2011
![]()
The <instances> tag
The <packages> tag:
The <resources> tag:
The <sites> tag
The environment.xml allow to define the root paths for your project folders.
We remind you that every project folder includes the following four subfolders:
You have to define the path of the genro project’s folders and the path for the dojo’s contents. Optionally, you can specify the path of your projects (and theirs relative subfolders).
TODO
The <packages> tag allow you to specify the packages you want to import in your project. Once they have been imported, you can use their resources, tables and webpages. (TODO E allora cosa servono le tag instances resources projects... AAARGH!!!)
Example:
<packages> <my paths='~/yourRootPathForGenro/.../yourFolderPathOfYourPackages' /> </packages>where yourRootPathForGenro is your root path of your Genro application.
To import the standard genro packages, please add the following tag in the <packages> tag of the environment.xml:
<genro path="~/yourRootPathForGenro/genro/packages"/>where yourRootPathForGenro is your root path of your Genro application.
TODO
To configure correctly the environment.xml file for the usage of the standard components, you have to add the following tag:
<genro path="$GNRHOME/resources/"/>So the <resources> tag will be:
<resources> <genro path="$GNRHOME/resources/"/> </resources>
TODO
We report here the structure of the environment.xml:
<?xml version="1.0" encoding="UTF-8"?> <GenRoBag> <environment> <gnrhome value='~/development/genro' /> <!--"development" is our rootpath folder for Genro--> </environment> <projects> <genro path="$GNRHOME/projects" /> <softwell path='~/development/softwell/projects' /> <!--Here lies a repository of Genro Team project--> <my_project path="~/development/my_project"/> <!--Add here the path of your projects--> </projects> <packages> <genro path="$GNRHOME/packages"/> <my path='~/my_packages' /> <!--Add here the path of your packages folder --> </packages> <static>' <js> <dojo_11 path="$GNRHOME/dojo_libs/dojo_11" cdn=""/> <!--Put here the version of Dojo and Genro js libs you use--> <gnr_11 path="$GNRHOME/gnrjs/gnr_d11"/> </js> </static> <resources > <genro path="$GNRHOME/resources/"/> </resources> </GenRoBag>