<?xml version="1.0" encoding="UTF-8"?>
<project name="AirportDemoWrapper" default="cobolbuild" basedir="." xmlns:ac="antlib:net.sf.antcontrib">
	<typedef name="mffilelist" classname="com.microfocus.ant.TypeFileList"/>
	<typedef name="mfdirlist" classname="com.microfocus.ant.TypeDirectiveList"/>
	<typedef name="mfdestfilelist" classname="com.microfocus.ant.TypeDestinationFileList"/>
	<taskdef name="cobol" classname="com.microfocus.ant.TaskCobol"/>
	<taskdef name="cobolclean" classname="com.microfocus.ant.TaskCobolClean"/>
	<taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpath="lib/ant-contrib-1.0b3.jar"/>
	<!--  ******************************  -->
	<!--  * OS-specific initialisation *  -->
	<!--  ******************************  -->
	<target name="os.init">
		<property name="pathVar.javaHome" value="C:/Program Files (x86)/Java/jre1.8.0_51"/>
		<condition property="windows">
			<os family="windows"/>
		</condition>
		<condition property="unix">
			<os family="unix"/>
		</condition>
		<property name="failOnError" value="false"/>
		<property name="cobolFailOnError" value="${failOnError}"/>
	</target>
	<target name="os.init.windows" if="windows">
		<property name="equalsInDir" value="="/>
		<property name="pathVar.pS" value=";"/>
		<property name="shell" value="cmd"/>
		<property name="shell.ext" value=".bat"/>
		<property name="shell.arg" value="/c"/>
		<property name="script.header" value="@rem MS-DOS Batch File"/>
	</target>
	<target name="os.init.unix" if="unix">
		<property name="equalsInDir" value="="/>
		<property name="pathVar.pS" value=":"/>
		<property name="shell" value="sh"/>
		<property name="shell.ext" value=".sh"/>
		<property name="shell.arg" value="-c"/>
		<property name="script.header" value="#!/bin/sh"/>
	</target>
	<!--  *****************************  -->
	<!--  * COBOL compiler directives *  -->
	<!--  *****************************  -->
	<!-- cobol_directive_set_1 -->
	<mfdirlist id="cobol_directive_set_1">
		<directive name="DIALECT" value="MF"/>
		<directive name="COPYEXT" value="cpy,cbl"/>
		<directive name="CHARSET" value="ASCII"/>
		<directive name="ILUSING" value="java.lang"/>
		<directive name="MAX-ERROR" value="100"/>
		<directive name="SOURCEFORMAT" value="variable"/>
		<directive name="NOWARNING"/>
		<directive name="SOURCETABSTOP" value="4"/>
		<directive name="JVMCLASSPATH" value="&quot;${pathVar.javaHome}/lib/resources.jar${pathVar.pS}${pathVar.javaHome}/lib/rt.jar${pathVar.pS}${pathVar.javaHome}/lib/jsse.jar${pathVar.pS}${pathVar.javaHome}/lib/jce.jar${pathVar.pS}${pathVar.javaHome}/lib/charsets.jar${pathVar.pS}${pathVar.javaHome}/lib/jfr.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/access-bridge-32.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/cldrdata.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/dnsns.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/jaccess.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/jfxrt.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/localedata.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/nashorn.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/sunec.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/sunjce_provider.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/sunmscapi.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/sunpkcs11.jar${pathVar.pS}${pathVar.javaHome}/lib/ext/zipfs.jar&quot;"/>
		<directive name="ILSOURCE" value="${basedir}/src/com/microfocus/airport/AirportWrapper.cbl"/>
		<directive name="ILSOURCE" value="${basedir}/src/aircode.cbl"/>
	</mfdirlist>
	<!--  **********************  -->
	<!--  * COBOL source files *  -->
	<!--  **********************  -->
	<!-- cobol_file_set_1 -->
	<mffilelist type="srcfile" id="cobol_file_set_1" srcdir="${basedir}">
		<file name="AirportDetails.cbl" srcdir="src/com/microfocus/airport"/>
	</mffilelist>
	<!-- COBOL copybook locations -->
	<mffilelist id="cobol.copybook.locations">
		<path type="copybook" name="${AirportDemoWrapper}"/>
		<path type="copybook" name="${AirportDemoWrapper}/src"/>
		<path type="copybook" name="${AirportDemoWrapper}/src/com"/>
		<path type="copybook" name="${AirportDemoWrapper}/.settings"/>
		<path type="copybook" name="${AirportDemoWrapper}/src/com/microfocus"/>
		<path type="copybook" name="${AirportDemoWrapper}/src/com/microfocus/airport"/>
	</mffilelist>
	<!--  ****************************************  -->
	<!--  * COBOL Source Files and Directive Set *  -->
	<!--  ****************************************  -->
	<!-- dirset.New_Configuration -->
	<mfdirlist id="dirset.New_Configuration.C:\Users\SPN\Desktop\AirportDemo-Eclipse\AirportWrapper\src\com\microfocus\airport\AirportDetails.cbl" refid="cobol_directive_set_1"/>
	<mffilelist refid="cobol.copybook.locations"/>
	<target name="FileCompile.New_Configuration.C:\Users\SPN\Desktop\AirportDemo-Eclipse\AirportWrapper\src\com\microfocus\airport\AirportDetails.cbl" depends="init">
		<cobol debug="true" destdir="${basedir}/bin" is64bit="false" failonerror="${cobolFailOnError}" forceCompile="${forceCompile}" desttype="jvm">
			<mffilelist refid="cobol.copybook.locations"/>
			<mfdirlist refid="dirset.New_Configuration.${filename}"/>
			<mffilelist type="srcfile" srcdir="${basedir}">
				<file name="${filename}"/>
			</mffilelist>
		</cobol>
	</target>
	<!--  *************************  -->
	<!--  * Configuration targets *  -->
	<!--  *************************  -->
	<!-- cfg.New_Configuration -->
	<target name="cobol.cfg.New_Configuration" depends="init">
		<cobol debug="true" destdir="${basedir}/bin" is64bit="false" failonerror="${cobolFailOnError}" forceCompile="${forceCompile}" desttype="jvm">
			<mffilelist refid="cobol.copybook.locations"/>
			<mfdirlist refid="cobol_directive_set_1"/>
			<mffilelist refid="cobol_file_set_1"/>
		</cobol>
	</target>
	<target name="New_Configuration.FileCompile" depends="init">
		<ac:for list="${filesList}" param="filename" keepgoing="true" trim="true">
			<sequential>
				<ac:if>
					<not>
						<isset property="isCancelled"/>
					</not>
					<then>
						<ac:antcallback target="FileCompile.New_Configuration.@{filename}" inheritAll="true" return="isCancelled">
							<param name="filename" value="@{filename}"/>
						</ac:antcallback>
					</then>
				</ac:if>
			</sequential>
		</ac:for>
	</target>
	<target name="pre.build.cfg.New_Configuration" depends="init">
	</target>
	<target name="post.build.cfg.New_Configuration" depends="init">
	</target>
	<target name="clean.cfg.New_Configuration" depends="init">
		<cobolclean debug="true" destdir="${basedir}/bin" desttype="jvm">
			<mffilelist refid="cobol_file_set_1"/>
		</cobolclean>
	</target>
	<!--  *******************  -->
	<!--  * General targets *  -->
	<!--  *******************  -->
	<target name="init" depends="os.init,os.init.windows,os.init.unix">
		<property environment="env"/>
		<property name="AirportDemoWrapper" value="${basedir}"/>
		<property name="cfg" value="New_Configuration"/>
		<property name="cfgtarget" value="cfg.${cfg}"/>
		<property name="forceCompile" value="true"/>
		<property name="pathVar.PROJECT_LOC" value="${env.PROJECT_LOC}"/>
		<property name="pathVar.WORKSPACE_LOC" value="${env.WORKSPACE_LOC}"/>
		<property name="pathVar.ECLIPSE_HOME" value="${env.ECLIPSE_HOME}"/>
		<property name="pathVar.PARENT_LOC" value="${env.PARENT_LOC}"/>
	</target>
	<target name="init.all.configurations">
	</target>
	<target name="clean" depends="init,init.all.configurations">
		<antcall target="clean.${cfgtarget}" inheritAll="true"/>
	</target>
	<target name="compileSource" depends="init,init.all.configurations">
		<antcall target="${cfg}.FileCompile" inheritAll="true"/>
	</target>
	<target name="compile" depends="compileSource">
	</target>
	<target name="cobolbuild" depends="init,init.all.configurations,clean">
		<antcall target="pre.build.${cfgtarget}" inheritAll="true"/>
		<antcall target="cobol.${cfgtarget}" inheritAll="true"/>
		<antcall target="post.build.${cfgtarget}" inheritAll="true"/>
	</target>
</project>
