Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-161

Ordonner les entrées et ajouter des commentaires dans le fichier config.xml

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.1, 2.0.0 M3
    • 1.0.2
    • Workspace admin
    • None

      L'édition et la lecture du fichier WEB-INF/config/config.xml est assez pénible car les entrées sont dans le désordre suite à une sauvegarde.
      Il faudrait donc les ordonner par ordre alphabétique (plus sympa pour retrouver le mot de passe JDBC par exemple).

          [RUNTIME-161] Ordonner les entrées et ajouter des commentaires dans le fichier config.xml

          Intégré dans les branches 1_1_x et HEAD.

          Sébastien Launay (Inactive) added a comment - Intégré dans les branches 1_1_x et HEAD.

          Ca nous donne ceci :

          <?xml version="1.0" encoding="UTF-8"?>
          <config>
            <!--+
                | MAIL_DEPLOY_CATEGORY
                +-->
          
            <!-- MAIL_DEPLOY_GROUP -->
            <mail.server>mail.anyware</mail.server>
            <mail.username/>
            <mail.password/>
          
            <!--+
                | NEWSLETTER_DEPLOY_CATEGORY
                +-->
          
            <!-- NEWSLETTER_DEPLOY_GROUP -->
            <newsletter.archive.display>5</newsletter.archive.display>
          
            <!--+
                | DOCBOOK_DEPLOY_CATEGORY
                +-->
          
            <!-- DOCKBOOK_DEPLOY_OOSERVERGROUP -->
            <openoffice.port>8100</openoffice.port>
          
            <!--+
                | PLUGINS_CORE_DATASOURCE_CORE_CONFIG_JDBC_CATEGORY_DATASOURCE
                +-->
          
            <!-- PLUGINS_CORE_DATASOURCE_CORE_CONFIG_JDBC_CATEGORY_DATASOURCE_GROUP_CORE -->
            <runtime.datasource.core.jdbc.driver>com.mysql.jdbc.Driver</runtime.datasource.core.jdbc.driver>
            <runtime.datasource.core.jdbc.url>jdbc:mysql://localhost/bpi</runtime.datasource.core.jdbc.url>
            <runtime.datasource.core.jdbc.user>root</runtime.datasource.core.jdbc.user>
            <runtime.datasource.core.jdbc.passwd>root</runtime.datasource.core.jdbc.passwd>
          
            ...
          
            <!--+
                | HOME_DEPLOY_CATEGORY
                +-->
          
            <!-- HOME_DEPLOY_MENU -->
            <home.menu.level>3</home.menu.level>
          
            <!--+
                | NEWS_DEPLOY_CATEGORY
                +-->
          
            <!-- NEWS_DEPLOY_THUMBNAIL -->
            <news.thumbnail.maxwidth>100</news.thumbnail.maxwidth>
            <news.thumbnail.maxheight>100</news.thumbnail.maxheight>
            <!-- NEWS_DEPLOY_NEWS_DISPLAY -->
            <news.display.home>4</news.display.home>
          </config>
          

          Sébastien Launay (Inactive) added a comment - Ca nous donne ceci : <?xml version= "1.0" encoding= "UTF-8" ?> <config> <!--+ | MAIL_DEPLOY_CATEGORY +--> <!-- MAIL_DEPLOY_GROUP --> <mail.server> mail.anyware </mail.server> <mail.username/> <mail.password/> <!--+ | NEWSLETTER_DEPLOY_CATEGORY +--> <!-- NEWSLETTER_DEPLOY_GROUP --> <newsletter.archive.display> 5 </newsletter.archive.display> <!--+ | DOCBOOK_DEPLOY_CATEGORY +--> <!-- DOCKBOOK_DEPLOY_OOSERVERGROUP --> <openoffice.port> 8100 </openoffice.port> <!--+ | PLUGINS_CORE_DATASOURCE_CORE_CONFIG_JDBC_CATEGORY_DATASOURCE +--> <!-- PLUGINS_CORE_DATASOURCE_CORE_CONFIG_JDBC_CATEGORY_DATASOURCE_GROUP_CORE --> <runtime.datasource.core.jdbc.driver> com.mysql.jdbc.Driver </runtime.datasource.core.jdbc.driver> <runtime.datasource.core.jdbc.url> jdbc:mysql://localhost/bpi </runtime.datasource.core.jdbc.url> <runtime.datasource.core.jdbc.user> root </runtime.datasource.core.jdbc.user> <runtime.datasource.core.jdbc.passwd> root </runtime.datasource.core.jdbc.passwd> ... <!--+ | HOME_DEPLOY_CATEGORY +--> <!-- HOME_DEPLOY_MENU --> <home.menu.level> 3 </home.menu.level> <!--+ | NEWS_DEPLOY_CATEGORY +--> <!-- NEWS_DEPLOY_THUMBNAIL --> <news.thumbnail.maxwidth> 100 </news.thumbnail.maxwidth> <news.thumbnail.maxheight> 100 </news.thumbnail.maxheight> <!-- NEWS_DEPLOY_NEWS_DISPLAY --> <news.display.home> 4 </news.display.home> </config>

          Raph propose de :

          • grouper les entrées par category ;
          • rajouter un commentaire avant chaque paramètre contenant la description en anglais ;
          • le tout indenté.

          Sébastien Launay (Inactive) added a comment - Raph propose de : grouper les entrées par category ; rajouter un commentaire avant chaque paramètre contenant la description en anglais ; le tout indenté.

            Unassigned Unassigned
            yabon Sébastien Launay (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: