<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../etc/wfrant2html.xsl"?>
<!-- version 2005/08/03 -->
<!-- author Bill Rich, bill@wilandra.com, Wilandra Consulting LLC. Copyright (C) 2004-2005, Wilandra Consulting LLC. All rights reserved. -->
<!-- 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 for the License Agreement. -->
<!-- =================================================================== -->
<project	name="L10NProcess-tasks"
					basedir="."
					default="init"
					xmlns:ac="antlib:net.sf.antcontrib">
	<description>
		Ant tasks used in an L10N project in support of the main tasks. This is intended to be imported by the L10NProcess.xml file. The targets in this file are useful only to the targets in other L10NProcess files. These targets are not intended to be used as main tasks.
	</description>
<!-- =================================================================== -->
	<!-- Load more support task files. -->
	<import file="${env.G11NTOOLKIT_DIR}/L10NProcess/L10NProcess-toktasks.xml"/>
	<import file="${env.G11NTOOLKIT_DIR}/L10NProcess/L10NProcess-detoktasks.xml"/>
	<import file="${env.G11NTOOLKIT_DIR}/L10NProcess/L10NProcess-filediscovery.xml"/>
<!-- =================================================================== -->
	<target	name="loadprojxlfilelist"
					depends="init"
					description="Load the project translated file list from the project file. This loads only the files in the project file that are marked for translation into a formatted semi-colon delimited list. The list contains the following pattern (leading and trailing quote marks not included) for each file: &quot;/type &quot;t&quot; /inputname &quot;i&quot; /outputname &quot;o&quot;&quot; where t, i, and o are replaced by values extracted from the file elements in the project file. t, i, and o are quoted strings.">
		<loadfile	property="projXLFileList"
							srcFile="${PROJECTFILE}">
			<filterchain>
				<tokenfilter	delimOutput=";">
					<ignoreblank/>
					<containsregex	pattern=".*&lt;file.*type=&quot;([^&quot;]*)&quot;.*translate=&quot;XL&quot;.*inputname=&quot;([^&quot;]*)&quot;.*outputname=&quot;([^&quot;]*)&quot;.*"
													flags="is"
													replace="/type &quot;\1&quot; /inputname &quot;\2&quot; /outputname &quot;\3&quot;"/>
				</tokenfilter>
			</filterchain>
		</loadfile>
		<makeFileLists projXLFileList="${projXLFileList}" typeListName="typeList" fileListBaseName="projXLFileList" delimiter=";"/>
	</target>
<!-- =================================================================== -->
	<target	name="cstlrbfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_LRB"
					description="Copy each source file to its corresponding target file and translate the class name in the target file.">
		<ac:for	list="${projXLFileList_LRB}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
				<getoutputname	listitem="@{afile}"
												property="cst1.tar.@{afile}"/>
				<xlcnfile	file="${PRODUCT}/${cst1.tar.@{afile}}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="csthtmlfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_HTML"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_HTML}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstjsfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_JS"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_JS}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstcssfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_CSS"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_CSS}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstjspfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_JSP"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_JSP}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstmcfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_MC"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_MC}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstprbfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_PRB"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_PRB}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstsqlfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_SQL"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_SQL}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstxmlfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_XML"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_XML}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="cstxslfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_XSL"
					description="Copy each source file to its corresponding target file.">
		<ac:for	list="${projXLFileList_XSL}"
					delimiter=";"
					param="afile">
			<sequential>
				<cstfile	fileentry="@{afile}"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
</project>
