<?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">
    	<choose>
	     	<when test="$(Instance@J2EEEngineInstanceHost/OpSysCode) == WIN">
			    <modifyFile file="$(Instance@InstanceProfilePath)" commentPattern="# *****  %  *****" id="UpdateProfile">
			      <setProperty target="j2ee/dbdriver">
			        <stringValue>$$(DIR_EXECUTABLE)$$(DIR_SEP)ojdbc6.jar</stringValue>
			      </setProperty>
			    </modifyFile>
		    </when>
	     	<when test="$(Instance@J2EEEngineInstanceHost/OpSysCode) == UNX">
			    <modifyFile file="$(Instance@InstanceProfilePath)" commentPattern="# *****  %  *****" id="UpdateProfile">
			      <setProperty target="j2ee/dbdriver">
			        <stringValue>/oracle/client/10x_64/instantclient/ojdbc6.jar</stringValue>
			      </setProperty>
			    </modifyFile>
		    </when>
	    </choose>
     </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)/ora/dbclient.lst" toDir="$(/J2EE/StandardSystem/ServiceInstance/CTRunDirectory)" overwrite="true" id="updateDriverLstFile"/>
    </if>	
  </task>
  
</configuration>
