<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM "dtd/Configuration.dtd">
<configuration name="EngineBootstrapTasks" version="1.0">
  <package name="com.sap.sdt.tools" version="1.0"/>

  <task name="BACKUP_BOOTSTRAP_PROPERTIES" type="fs">
    <if test="!$FILE_EXISTS($(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties.jspm)">
      <copy file="$(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties" 
            toFile="$(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties.jspm"/>
    </if>
  </task>

  <task name="RESTORE_BOOTSTRAP_PROPERTIES" type="fs">
    <if test="$FILE_EXISTS($(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties.jspm)">
      <move file="$(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties.jspm" 
            toFile="$(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties"/>
    </if>
  </task>

  <task name="FORCE_BOOTSTRAP" type="modifyFile">
    <modifyFile file="$(/J2EE/StandardSystem/CentralInstance/J2EEDirectory)/cluster/bootstrap/bootstrap.properties" commentPattern="# *****  %  *****">
      <setProperty target="element.resynch">
        <stringValue>FORCE</stringValue>
      </setProperty>
    </modifyFile>
  </task>
    
</configuration>
