project

Purpose

Container for project information.

Contains

Note that the order of elements within the project element is important and must match the order defined by the following XML schema fragment:

<xs:element name="project">
  <xs:complexType>
    <xs:sequence>
      <xs:choice minOccurs="0">
        <xs:element ref="xml-policies"/>
        <xs:element ref="jdbc-policies"/>
      </xs:choice>
      <xs:element ref="assets" minOccurs="0"/>
      <xs:element ref="default-layout" minOccurs="0"/>
      <xs:element ref="themes" minOccurs="0"/>
      <xs:element ref="bindings" minOccurs="0"/>
      <xs:element ref="policy-cache-partition" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="name" type="ProjectName" use="optional"/>
    <xs:attribute name="extends" type="xs:anyURI" use="optional"/>
  </xs:complexType>
</xs:element>

Attribute

Attribute Description Type Default Options Use
extends The mcs-config.xml file extended by this configuration file. xs:anyURI     optional 
name The name of the project. xs:string     required 

Example

<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://www.volantis.com/xmlns/mcs/project"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  name="WelcomeProject">
  <xml-policies directory="WebContent/mcs-policies/"/>
  <assets base-url="."/>
  <policy-cache-partition size="100">
    <constraints>
      <cache allow="false" default="false"/>
    </constraints>
  </policy-cache-partition>
</project>

Related topics