<?xml version="1.0"?>
<!-- <!DOCTYPE configuration SYSTEM "dtd/Configuration.dtd">  -->
<configuration name="SAPJVMTasks" version="1.0">
  <package name="com.sap.sdt.tools" version="1.0"/>

  <task name="ADAPT_PROFILES" type="modifyFile">
		<if test="'$(/J2EE/DBSystem/NewJDBCDriverClasspath)' != '$(/J2EE/DBSystem/JDBCDriverClasspath)'">
     <for-each variable="/J2EE/StandardSystem/Instances" into="Instance">
		    <modifyFile file="$(Instance@InstanceProfilePath)" commentPattern="# *****  %  *****" id="UpdateProfile">
		      <setProperty target="j2ee/dbdriver">
		        <stringValue>$$(DIR_EXECUTABLE)$$(DIR_SEP)db2jcc4.jar</stringValue>
		      </setProperty>
		    </modifyFile>
     </for-each>
    </if>
	</task>
	    
  <task name="UPDATE_JDBC_DRIVER_LST_FILE" type="fs">
    <description>Update jdbc driver lst file used by sapcpe</description>
		<if test="'$(/J2EE/DBSystem/NewJDBCDriverClasspath)' != '$(/J2EE/DBSystem/JDBCDriverClasspath)'">
	    <copy file="$(JSPM/DIR/CONFIG/TEMPLATES)/db6/jdbcdriver.lst" toDir="$(/J2EE/StandardSystem/CentralInstance/GlobalDirectory)/db6/jdbc" id="updateDriverLstFile"/>
	  </if>  
  </task>
  
</configuration>
