<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="./wfrant2html.xsl"?>
<!-- version 2005/09/19 -->
<!-- author Bill Rich, bill@wilandra.com, Wilandra Consulting LLC. Copyright (C) 2005, Wilandra Consulting LLC. All rights reserved.

	This program is free software; you can redistribute it and/or modify it under the
	terms of the GNU General Public License as published by the Free Software Foundation;
	either version 2 of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful, but WITHOUT ANY
	WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
	PARTICULAR PURPOSE. See the GNU General Public License for more details.

	See http://g11ntoolkit.sourceforge.net/licenseGPL.html.
-->
<!-- =================================================================== -->
<project	name="ExtSamp-tasks"
					basedir="."
					default="init">
	<description>
		Extensions to the G11NToolKit L10N project in support of the main tasks.
	</description>
<!-- =================================================================== -->
	<!-- Load more support task files. -->
	<import file="${env.G11NTOOLKIT_DIR}/extensions/L10NProcess/ExtSamp-toktasks.xml"/>
	<import file="${env.G11NTOOLKIT_DIR}/extensions/L10NProcess/ExtSamp-detoktasks.xml"/>
	<import file="${env.G11NTOOLKIT_DIR}/extensions/L10NProcess/ExtSamp-p4tasks.xml"/>
<!-- =================================================================== -->
	<target	name="cstoddlrbfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_ODDLRB"
					description="Copy each source file to its corresponding target file and translate the class name in the target file.">
		<ac:for	list="${projXLFileList_ODDLRB}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
				<getoutputname	listitem="@{afile}"
												property="cst2.tar.@{afile}"/>
				<xlcnfile	file="${PRODUCT}/${cst2.tar.@{afile}}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstxm2files"
					depends="loadprojxlfilelist"
					if="projXLFileList_XM2"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_XM2}"
					delimiter=";"
					param="afile">
			<sequential>
				<getsrcname	listitem="@{afile}"
										property="file.src.@{afile}"/>
				<getoutputname	listitem="@{afile}"
												property="file.tar.@{afile}"/>
				<xslt
					in="${PRODUCT}/${file.src.@{afile}}"
					out="${PRODUCTWORKDIR}/${file.src.@{afile}}.XM2"
					style="${PRODUCT}/NLS/presentation.xslt">
				</xslt>
				<copy	file="${PRODUCTWORKDIR}/${file.src.@{afile}}.XM2"
							tofile="${PRODUCT}/${file.tar.@{afile}}"
							overwrite="true"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
</project>
