<?xml version="1.0"?>
<!-- 
/*
 * Copyright 2001-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 -->


<project 
  xmlns:maven="jelly:maven"
  xmlns:ant="jelly:ant"
  xmlns:j="jelly:core">

  <!--
   |
   | Touchstone goals.
   |
   -->
   
  <goal name="touchstone-goal-A">
    <echo>touchstone-goal-A defined in plugin.</echo>
    <j:set var="touchstone_goal_A_from_plugin" value="true"/>
  </goal>

  <goal name="touchstone-goal-B">
    <echo>touchstone-goal-B defined in plugin.</echo>
    <j:set var="touchstone_goal_B_from_plugin" value="true"/>
  </goal>

  <goal name="touchstone-goal-C">
    <echo>touchstone-goal-C defined in plugin.</echo>
    <j:set var="touchstone_goal_C_from_plugin" value="true"/>
  </goal>

  <goal name="touchstone-goal-D">
    <echo>touchstone-goal-D defined in plugin.</echo>
    <j:set var="touchstone_goal_D_from_plugin" value="true"/>
  </goal>

  <goal name="touchstone-goal-E">
    <echo>touchstone-goal-E defined in plugin.</echo>
    <j:set var="touchstone_goal_E_from_plugin" value="true"/>
  </goal>

  <goal name="touchstone:test-context-switch-dummy">
    <ant:echo>testing differing plugin contexts</ant:echo>
  </goal>

  <goal name="touchstone:test-context-switch">
    <j:set var="touchstoneSourceDir" value="${pom.build.sourceDirectory}" />
    <maven:pluginVar var="var" plugin="maven-touchstone-partner-plugin" property="partnerSourceDir" />
    <j:if test="${var != touchstoneSourceDir}">
      <ant:fail>pom.build.sourceDirectory differs over plugin and partner plugin (touchstone = '${touchstoneSourceDir}'; partner = '${var}')</ant:fail>
    </j:if>
  </goal>
   
</project>
