assets

Purpose

Project specific configuration relating to assets.

Contained by

Attribute

Attribute Description Type Default Options Use
base-url Specifies the base URL for assets belonging to the enclosing project element. Both relative paths and absolute http: URLs are supported. For portable projects, relative URLs are resolved against the location of the project. For dynamic projects, relative URLs are resolved against the request context. If the attribute is not specified, then it defaults to '.', i.e. for portable projects, MCS assumes that assets are stored relative to the project location; for dynamic projects, MCS assumes that assets are stored relative to the request context. xs:anyURI   optional 

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