<?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-toktasks"
					basedir="."
					default="init">
	<description>
		Extensions to the G11NToolKit L10N project in support of the tokenization steps in the L10N Process.
	</description>
<!-- =================================================================== -->
	<target	name="tokoddlrbfiles"
					depends="loadprojxlfilelist"
					if="projXLFileList_ODDLRB"
					description="Tokenize the source ListResourceBundle files with an ODD twist to create the extracted string files.">
		<ac:for	list="${projXLFileList_ODDLRB}"
					delimiter=";"
					param="afile">
			<sequential>
				<getsrcname	listitem="@{afile}"
										property="file.name.src.@{afile}"/>
				<echo message="*****Begin source file [${PRODUCT}/${file.name.src.@{afile}}]"/>
				<fixcrlf	srcdir="." includes="${PRODUCT}/${file.name.src.@{afile}}"/>
				<makefiledir	filename="${PRODUCTWORKDIR}/${file.name.src.@{afile}}"/>
				<java	classname="com.company.g11n.ExtSamp.tokenizer.TokODDListResourceBundle"
							fork="true"
							failonerror="true">
					<classpath	refid="project.class.path"/>
					<jvmarg	line="-Djava.util.logging.config.file=${LOGPROPS}"/>
					<arg	line="/in ${PRODUCT}/${file.name.src.@{afile}}"/>
					<arg	line="/inloc ${SOURCELOCALE}"/>
					<arg	line="/str ${PRODUCTWORKDIR}/${file.name.src.@{afile}}.str"/>
					<arg	line="/context ${file.name.src.@{afile}}"/>
					<arg	line="/product ${PRODUCT}"/>
					<arg	line="/product-version ${PRODUCT-VERSION}"/>
				</java>
				<echo	message="Output file [${PRODUCTWORKDIR}/${file.name.src.@{afile}}.str] created."/>
				<echo	message="*****End source file [${PRODUCT}/${file.name.src.@{afile}}]"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
	<target	name="tokxm2files"
					depends="loadprojxlfilelist"
					if="projXLFileList_XM2"
					description="Tokenize the XML type 2 files in the ExtSamp project file.">
		<ac:for	list="${projXLFileList_XM2}"
				delimiter=";"
				param="afile">
			<sequential>
				<getsrcname	listitem="@{afile}"
										property="file.name.src.@{afile}"/>
				<echo message="*****Begin source file [${PRODUCT}/${file.name.src.@{afile}}]"/>
				<fixcrlf	srcdir="." includes="${PRODUCT}/${file.name.src.@{afile}}"/>
				<makefiledir	filename="${PRODUCTWORKDIR}/${file.name.src.@{afile}}.XM2"/>
				<xslt
					in="${PRODUCT}/${file.name.src.@{afile}}"
					out="${PRODUCTWORKDIR}/${file.name.src.@{afile}}.XM2"
					style="${PRODUCT}/NLS/pm.xslt">
				</xslt>
				<java	classname="com.g11ntoolkit.tokenizer.TokXMLFile"
							fork="true"
							failonerror="true">
					<classpath	refid="project.class.path"/>
					<jvmarg	line="-Djava.util.logging.config.file=${LOGPROPS}"/>
					<arg	line="/in ${PRODUCTWORKDIR}/${file.name.src.@{afile}}.XM2"/>
					<arg	line="/inloc ${SOURCELOCALE}"/>
					<arg	line="/str ${PRODUCTWORKDIR}/${file.name.src.@{afile}}.str"/>
					<arg	line="/context ${file.name.src.@{afile}}"/>
					<arg	line="/xmlprops xm2"/>
				</java>
				<echo	message="Output file [${PRODUCTWORKDIR}/${file.name.src.@{afile}}.str] created."/>
				<echo	message="*****End source file [${PRODUCT}/${file.name.src.@{afile}}]"/>
			</sequential>
		</ac:for>
	</target>
<!-- =================================================================== -->
</project>
