WordPress is a personal publishing platform designed to ease web blog management. The application is built on PHP and MySQL and licensed under the GPL. It is designed to be installed on dedicated web server or shared hosting account and desktop. The most up-to-date version of Wordpress is 3.0, and the approximate package size is 7Mb. Web blog can be localized and delivered in a language at customer choice. Every installation of WordPress comes with a file editor one can use to edit templates and other WordPress related files, right in a browser without having to worry about downloading and uploading the files in order to edit them.
Note: above information is taken from application vendor home page.
Listed below are the sections of an APP-META.xml file supplied with your package:
<service id="blog">
<requirements xmlns:php="http://apstandard.com/ns/1/php"
xmlns:db="http://apstandard.com/ns/1/db">
<php:version min="4.2.0"/>
<php:extension>mysql</php:extension>
<php:safe-mode>false</php:safe-mode>
<db:db>
<db:id>main</db:id>
<db:default-name>wordpress</db:default-name>
<db:can-use-tables-prefix>false</db:can-use-tables-prefix>
<db:server-type>mysql</db:server-type>
<db:server-min-version>4.0.0</db:server-min-version>
</db:db>
</requirements>
min-length attribute set to 200 or above). Let's group these settings for better presentation, and write down it in the Specification terms:<settings>
<group>
<name>Administrator's preferences</name>
<setting id="admin_name" type="string"
default-value="admin" min-length="1"
max-length="32" regex="^[a-zA-Z][0-9a-zA-Z_\-]*">
<name>Administrator's login</name>
<error-message>Please make sure the text you entered starts
with a letter and continues with either numbers,
letters, underscores or hyphens.
</error-message>
</setting>
<setting id="admin_password" type="password" min-length="1" >
<name>Password</name>
</setting>
<setting id="admin_email" type="email">
<name>Administrator's email</name>
</setting>
</group>
<group>
<name>Weblog's preferences</name>
<setting id="title" type="string" min-length="1">
<name>Weblog title</name>
</setting>
</group>
<group>
<name>Other preferences</name>
<setting id="locale" type="enum" default-value="en-US">
<name>Interface language</name>
<choice id="en-US" >
<name>English</name>
</choice>
<choice id="de-DE" >
<name>German</name>
</choice>
</setting>
</group>
</settings>
<provision>
<url-mapping>
<default-prefix>wordpress</default-prefix>
<installed-size>6696960</installed-size>
<mapping url="/" path="htdocs"
xmlns:php="http://apstandard.com/ns/1/php">
<php:handler>
<php:extension>php</php:extension>
</php:handler>
<mapping url="blogs/media">
<php:permissions writable="true"/>
</mapping>
<mapping url="wp-content">
<php:permissions writable="true"/>
</mapping>
<mapping url="tmp">
<php:permissions writable="true"/>
</mapping>
</mapping>
</url-mapping>
</provision>
<id>http://wordpress.org/</id>
<name>WordPress</name>
<version>3.0</version>
<release>5</release>
And then add information written down on previous steps and replenish it with details.
Add information about script to the provision section of the metadata file. For example,
<configuration-script name="configure">
<script-language>php</script-language>
</configuration-script>
|
# Metadata container. XML file. |
|
|
|
# This script will be invoked when application instance is to be setup. |
|
|
|
# Icon and screenshots of the application |
|
|
|
# WordPress files |