<?xml version="1.0" encoding="UTF-8"?>
<!--
  ANT Buildfile
 
  Copyright 2013-2023 IS2T. All rights reserved.
  IS2T PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
-->
<project name="kfInitMicroJvm" xmlns:if="ant:if">

	<import file="${scripts.dir}/extension-init.xml" />
	
	<!-- Add KF in the classpath, even if not touched by the application -->
	<target name="init/kf/soar" extensionOf="init/execution" if="execSOAR">
		<fail unless="platform.dir"/>
		<augment id="init.application.classpath">
			<fileset dir="${platform.dir}/javaLibs" includes="kf-*.jar" excludes="kf-*testsuite*.jar"/>
		</augment>		
	</target>
	
	<target name="init/kf/constants" extensionOf="init/execution">
		
		<!-- Set a default value without a warning for "com.microej.runtime.kf.waitstop.delay" when running on S3 -->
		<property name="com.microej.runtime.kf.waitstop.delay" value="2000" if:set="onS3"/>
		
		<defineOption name="com.microej.runtime.kf.waitstop.delay" defaultValue="2000">
		</defineOption>

		<augment id="init.constants">
			<propertyref name="com.microej.runtime.kf.waitstop.delay"/>
		</augment>
	</target>
	
</project>