ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dperez <>
Subject RE: Exec task not to show a console window under Windows
Date Fri, 19 Jan 2007 12:04:26 GMT

Hi Benjamin,

Of course:

<target name="translate">
	<foreach target="translate1" param="fich">
			<fileset dir="mydir">
				<include name="**/*.py"/>
				<include name="**/*.java"/>
<target name="translate1">
	<exec executable="xgettext">
		<arg line="--keyword --keyword=_ --from-code=UTF-8 -j --sort-by-file -o"/>
		<arg file="tmp/msjs.pot"/>
		<arg file="${fich}"/>

This is in a loop where I call the xgettext command for each source file. 
It uses the ant-contrib foreach task.
xgettext is a command that accepts multiple files, but maybe I reach the
command line length limit.

Workarounds I see:
- Iterate with a *.cmd file instead of Ant

Burgess, Benjamin wrote:
> Could you show the portion of your build that makes the call now?

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message