<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--

  Copyright (C) 2015 eXo Platform SAS.

  This is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; either version 2.1 of
  the License, or (at your option) any later version.

  This software is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this software; if not, write to the Free
  Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<gatein-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_resources_1_3 http://www.gatein.org/xml/ns/gatein_resources_1_3"
  xmlns="http://www.gatein.org/xml/ns/gatein_resources_1_3">

  <!-- CSS for Cloud Drive support of CMIS -->
  <portlet-skin>
    <application-name>cloud-drive-cmis</application-name>
    <portlet-name>CMISLoginPortlet</portlet-name>
    <skin-name>Default</skin-name>
    <css-path>/skin/clouddrive-cmis-login.css</css-path>
    <css-priority>1</css-priority>
  </portlet-skin>
  
  <!-- Javascript for Cloud Drive support of CMIS -->
  <module>
    <name>jqueryUI</name>
    <script>
      <path>/js/jquery-ui.min.js</path>
    </script>
    <depends>
      <module>jquery</module>
      <as>jQuery</as>
    </depends>
  </module>

  <module>
    <name>jqueryValidate</name>
    <script>
      <adapter>
        (function(jQuery) {
        <include>/js/jquery.validate.min.js</include>
        })($);
      </adapter>
    </script>
    <depends>
      <module>jquery</module>
    </depends>
  </module>
  
  <portlet>
    <name>CMISLoginPortlet</name>
    <module>
      <script>
        <path>/js/clouddrive-cmis-login.js</path>
      </script>
      <depends>
        <module>jquery</module>
      </depends>
      <depends>
        <module>jqueryUI</module>
      </depends>
      <depends>
        <module>jqueryValidate</module>
      </depends>
      <depends>
        <module>juzu-ajax</module>
      </depends>
    </module>
  </portlet>
</gatein-resources>
