<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  %%
  Copyright (C) 2005 - 2026 Kuali, Inc. - All Rights Reserved
  %%
  You may use and modify this code under the terms of the Kuali, Inc.
  Pre-Release License Agreement. You may not distribute it.
  
  You should have received a copy of the Kuali, Inc. Pre-Release License
  Agreement with this file. If not, please write to license@kuali.co.
  #L%
  -->


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <artifactId>rice-framework</artifactId>
    <groupId>org.kuali.rice</groupId>
    <version>2603.0003</version>
    <relativePath>../../../../pom.xml</relativePath>
  </parent>

  <artifactId>rice-krad-theme-builder-test</artifactId>
  <packaging>war</packaging>
  <name>Rice KRAD Theme Builder Test</name>

  <properties>
    <!-- Directory containing the web app source, assets will pulled from here to the output directory -->
    <webapp.source.dir>${basedir}/src/main/webapp</webapp.source.dir>

    <!-- Directory where the theme builders output should be placed. This can be the actual war
     directory or a temporary directory that gets copied over in a later phase -->
    <theme.builder.output.dir>${project.build.directory}/${project.artifactId}-${project.version}</theme.builder.output.dir>


    <!-- One or more themes to exclude from the build. The theme is identified by its directory name. Separate
     each theme with a comma. All directories in the default themes directory or additional directories will be
     copied, but only the ones not excluded here will be processed -->
    <theme.builder.excludes />


    <!-- One or more additional directories to process as themes. This should contain the full path to the theme
    directory. Separate each directory with a comma -->
    <theme.builder.theme.adddirs />


    <!-- One or more additional directories to process as plugins. This should contain the full path to the plugin
    directory. Separate each directory with a comma -->
    <theme.builder.plugin.adddirs />

    <!-- Indicates whether theme processing should be disabled, in which case the builder will only perform
     copying of assets to the output directory and overlays -->
    <theme.skip.theme.processing>false</theme.skip.theme.processing>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webResources>
            <resource>
              <!-- this is relative to the pom.xml directory -->
              <directory>src/main/webapp/</directory>
            </resource>
          </webResources>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.kuali.maven.plugins</groupId>
        <artifactId>spring-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>buildthemes</id>
            <phase>process-resources</phase>
            <goals>
              <goal>loadxml</goal>
            </goals>
            <configuration>
              <location>classpath:org/kuali/rice/krad/theme/themebuilder-context.xml</location>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>rice-krad-theme-builder</artifactId>
            <version>${project.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

</project>
