Project.xml globalisation
unibrew Jun 4, 2006 9:07 PMDear All :-)
I would like to propose our new project.xml structure. So, please go through it and check if everything we need is there, if there are no mistakes etc. It is important to consider this carefully because later changes might be paintful for us while doing migration and for our users. This is example of our project.xml structure now: http://labs.jboss.com/wiki/ProjectTemplate/file:project.xml
And this is how it will be:
<project> <id>jbosswiki</id> <name>JBoss Wiki</name> <company-name>The JBoss Labs Team</company-name> <logo>images/JBossWikiLogoMedium.gif</logo> <description>freezone/ProjectsMainPage.html</description> <jems>as</jems> <jems>tomcat</jems> <jems>portal</jems> <page>wiki</page> <page>blog</page> <page>downloads</page> <outside-link> <id>http://www.jboss.com/index.html?module=bb&op=viewforum&f=224</id> <name>JBoss Wiki Forum</name> </outside-link> <outside-link> <id>http://jira.jboss.com/jira/browse/JBWIKI</id> <name>JIRA Project</name> </outside-link> <outside-link> <id>http://labs.jboss.com/file-access/default/members/jbosswiki/freezone/docs/index.html</id> <name>Javadocs</name> </outside-link> <jira-adress>http://jira.jboss.com/jira/browse/JBWIKI</jira-adress> <svn-repo>http://anonsvn.labs.jboss.com/trunk/forge/portal-extensions/jbosswiki/</svn-repo>
This is content which already is supported by our project.xml, the only change in it is description tag. Now there will be just link to freezone, earlier there was(is) html content of project's main page.[/url]
Now the new features:
<fisheye>http://fisheye.jboss.com/jbosswiki</fisheye> <web-install>downloads/VickyInstaller</web-install> <cvs-repo>http://cvs.jboss.com/jbosswiki</cvs-repo> <view-cvs>http://viewcvs.jboss.com/jbosswiki</view-cvs> <docs>docs</docs> <wiki>http://labs.jboss.com/file-access/default/members/jbosswiki/freezone/docs/index.html</wiki> <user-forum>http://JBossForums.jboss.com/index.jsf?f=1</user-forum> <dev-forum>http://JBossForums.jboss.com/forums_body.jsf?f=2</dev-forum>
Did I forget something? What should be inside of DOCS tag? outside-link, link, nothing?
Next part of project.xml will be downloads with download counters. Our present downloads descriptor you can see here: http://labs.jboss.com/wiki/ProjectDownloads. Merging it into project.xml means that we will no longer have download.xml-s in download's subcategories. Everything must be in one file. So here is the proposition:
<downloads> <!-- SUBCATEGORIES --> <categories> <category> <id>Id of the subcategory = name of the subdirectory</id> <name>Screen name</name> <description>Description</description> <files visible="TRUE|false" order="asc|ascending|desc|descending|RANDOM" > <file visible="TRUE|false"> <id>Name of the file</id> <name>Screen name of the file</name> <description>Description of the file</description> <size>Size of the file</size> <license>(LGPL, GPL, etc.).</license> <release>Release Alpha Beta Gamma</release> <button> <id>link</id> <name>Display name of the button.</name> <freezone>true|false</freezone> </button> </file> </files> <category> <!-- LIKE ABOVE --> </category> </category> </categories> <!-- ROOT CATEGORY --> <name>Name of the root category</name> <description>Description of the root category</description> <!-- COUNTERS' SETTINGS INHERITED BY SUBCATEGORIES UNLESS OVERRIDED --> <counters> <visible>TRUE|false</visible> <sort-order>asc|ascending|desc|descending|RANDOM</sort-order> </counters> <files visible="TRUE|false" order="asc|ascending|desc|descending|RANDOM" > <file visible="TRUE|false" > <id>Name of the file</id> <name>Screen name of the file</name> <description>Description of the file</description> <size>Size of the file</size> <license>(LGPL, GPL, etc.).</license> <release>Release Alpha Beta Gamma</release> <button> <id>link</id> <name>Display name of the button.</name> <freezone>true|false</freezone> </button> </file> </files> </downloads>
If an attribute value is written in capital letters it means that this is default setting. The tree structure of download' categories might be achieved by two solutions. One is tree structure of XML: category-in-category-in-category-like style. Or second solution where category id describes what subcategory it is by parsing it's ID e.g.: subCat1/subCat12/subcat123.
Finally, Polls. Nothing special here, just copy of what is now in poll.xml.
<polls> <poll> <question>Isn't this xml structure simple?</question> <answer>Yes</answer> <answer>No</answer> <answer>I don't know</answer> </poll> <poll> ....... </poll> </polls> </project>
All the tasks connected with this subject can be found as dependants of this task: http://jira.jboss.com/jira/browse/JBLAB-679
I'm wondering also how we will move that changes into life. How, when and who will merge the descriptors?
Cheers
-------------------------
Ryszard Kozmik
JBoss Labs Intern