<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../etc/wfrant2html.xsl"?>
<!-- version 2005/07/19 -->
<!-- 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="@pid@"
					basedir="."
					default="usage"
					xmlns:ac="antlib:net.sf.antcontrib">
	<description>
		L10N project for the whole @pid@ product. This project uses the component list to apply the specified target to all the components. Use the sample command lines shown in the comment block as a guide to how to run this script. The USER property is used to specify the name of the user properties file and is optional.
	</description>

	<!-- Set up the environment. -->
	<property environment="env"/>
	<!-- Import the L10NProcess ant file so we can use its targets in this project. -->
	<import file="${env.G11NTOOLKIT_DIR}/L10NProcess/L10NProcess.xml"/>

	<!-- Specify the subproject list. -->
	<property	name="P01"
						value="@subproj1@"/>
	<property	name="P02"
						value="@subproj2@"/>
	<property	name="projectList"
						value="${P01};${P02}"/>

	<!-- Set up the tasks that will be needed from the ant-Contrib package. -->
	<target name="acj"
					description="Set up AntContrib tasks.">
		<!-- Set up the tasks that will be needed from the ant-Contrib package. -->
		<taskdef resource="net/sf/antcontrib/antlib.xml"/>
	</target>

	<target name="run"
					depends="acj"
					description="Run the specified target in L10NProcess.xml for each project in the subproject list.">
		<ac:for	list="${projectList}"
					delimiter=";"
					param="proj">
			<sequential>
				<ant	antfile="l10nproj.xml"
							target="${TARGET}"
							inheritrefs="false">
					<property	name="PROJECT"
										value="@{proj}"/>
				</ant>
			</sequential>
		</ac:for>
	</target>

	<!-- Display some usage information for this script. -->
	<target name="usage">
		<echo message="Use one of the following commands to invoke tasks in this script:"/>
		<echo message="ant -f @pid@.xml -e clean -DUSER=@uid@"/>
		<echo message="ant -f @pid@.xml -e run -DTARGET=getsourcefiles -l @pid@-getsourcefiles.log -DUSER=@uid@"/>
		<echo message="ant -f @pid@.xml -e run -DTARGET=tok -DLANGUAGE=@lang@ -l @pid@_@lang@-tok.log -DUSER=@uid@"/>
		<echo message="ant -f @pid@.xml -e run -DTARGET=detok -DLANGUAGE=@lang@ -l @pid@_@lang@-detok.log -DUSER=@uid@"/>
		<echo message="ant -f @pid@.xml -e run -DTARGET=copysrctar -l @pid@_@another_lang@-copysrctar.log -DLANGUAGE=@another_lang@ -DUSER=@uid@"/>
		<echo message="ant -f @pid@.xml -e run -DTARGET=puttargetfiles -DLANGUAGE=@lang@ -l @pid@_@lang@-puttargetfiles.log -DUSER=@uid@"/>
	</target>

</project>
