<?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">

  <preGoal name="touchstone-goal-C">
    <echo>preGoal for touchstone-goal-C is running ...</echo>
    <j:set var="touchstone_partner_preGoal_C" value="true"/>
  </preGoal>
  
  <preGoal name="touchstone-goal-D">
    <echo>preGoal for touchstone-goal-D is running ...</echo>
    <attainGoal name="touchstone-partner-goal-A"/>
  </preGoal>

  <postGoal name="touchstone-goal-C">
    <echo>postGoal for touchstone-goal-C is running ...</echo>
    <j:set var="touchstone_partner_postGoal_C" value="true"/>
  </postGoal>
  
  <postGoal name="touchstone-goal-D">
    <echo>postGoal for touchstone-goal-D is running ...</echo>
    <attainGoal name="touchstone-partner-goal-B"/>
  </postGoal>

  <goal name="touchstone-partner-goal-A">
    <j:set var="touchstone_partner_preGoal_D" value="true"/>
  </goal>
  
  <goal name="touchstone-partner-goal-B">
    <j:set var="touchstone_partner_postGoal_D" value="true"/>
  </goal>
  
  <goal name="touchstone-partner:test-context-switch">
    <maven:maven
      descriptor="${basedir}/src/reactor-build/failProperty/success-1/project.xml"
      goals="touchstone:test-context-switch-dummy"
      ignoreFailures="false"
    />
    <j:set var="partnerSourceDir" value="${pom.build.sourceDirectory}" />
    <attainGoal name="touchstone:test-context-switch" />
  </goal>
</project>
