<?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-detoktasks"
					basedir="."
					default="init">
	<description>
		Extensions to the G11NToolKit L10N project in support of the detokenization steps in the L10N Process.
	</description>
<!-- =================================================================== -->
	<target	name="detokoddlrbfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_ODDLRB"
					description="Detokenize each LRB file in the ExtSamp project file that is an ODD style LRB.">
		<ac:for	list="${projXLFileList_ODDLRB}"
				delimiter=";"
				param="afile">
			<sequential>
				<getsrcname			listitem="@{afile}"
												property="file.name.src.@{afile}"/>
				<getoutputname	listitem="@{afile}"
												property="file.name.tar.@{afile}"/>
				<echo message="*****Begin detok for input file [${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}] using [${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}.str]"/>
				<java	classname="com.g11ntoolkit.detokenizer.DetokResourceBundle"
							fork="true"
							failonerror="true">
					<classpath	refid="project.class.path"/>
					<jvmarg	line="-Djava.util.logging.config.file=${LOGPROPS}"/>
					<arg	line="/context ${file.name.src.@{afile}}"/>
					<arg	line="/out ${PRODUCT}/${file.name.tar.@{afile}}"/>
					<arg	line="/outloc ${TARGETLOCALE}"/>
					<arg	line="/encode UTF8"/>
					<arg	line="/str ${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}.str"/>
				</java>
				<xlcnfile	file="${PRODUCT}/${file.name.tar.@{afile}}"/>
				<n2afile	file="${PRODUCT}/${file.name.tar.@{afile}}"
									ext="java"/>
				<echo message="*****Target file [${PRODUCT}/${file.name.tar.@{afile}}] created."/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="detokxm2files"
					depends="loadprojxlfilelist"
					if="projXLFileList_XM2"
					description="Detokenize each XML file with a special Protal twist in the ExtSamp project file.">
		<ac:for	list="${projXLFileList_XM2}"
				delimiter=";"
				param="afile">
			<sequential>
				<getsrcname			listitem="@{afile}"
												property="file.name.src.@{afile}"/>
				<getoutputname	listitem="@{afile}"
												property="file.name.tar.@{afile}"/>
				<echo message="*****Begin detok for input file [${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}] using [${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}.str]"/>
				<java	classname="com.g11ntoolkit.detokenizer.DetokXMLFile"
							fork="true"
							failonerror="true">
					<classpath	refid="project.class.path"/>
					<jvmarg	line="-Djava.util.logging.config.file=${LOGPROPS}"/>
					<arg	line="/context ${file.name.src.@{afile}}"/>
					<arg	line="/out ${PRODUCT}/${file.name.tar.@{afile}}"/>
					<arg	line="/outloc ${TARGETLOCALE}"/>
					<arg	line="/encode UTF8"/>
					<arg	line="/str ${PRODUCTWORKDIR}/${PRODUCT}/${file.name.src.@{afile}}.str"/>
				</java>
				<echo message="*****Target file [${PRODUCT}/${file.name.tar.@{afile}}] created."/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
</project>
