ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Exec task not to show a console window under Windows
Date Fri, 19 Jan 2007 12:38:51 GMT
Just my few cents ...
- you could prepare "all" files with <pathconvert> and pass it to xgettext
- you could use <apply> for iterating over your python and java sources and
  calling xgettext on them


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: dperez [mailto:craquerpro@yahoo.es] 
>Gesendet: Freitag, 19. Januar 2007 13:04
>An: user@ant.apache.org
>Betreff: RE: Exec task not to show a console window under Windows
>
>
>Hi Benjamin,
>
>Of course:
>
><target name="translate">
>	<foreach target="translate1" param="fich">
>		<path>
>			<fileset dir="mydir">
>				<include name="**/*.py"/>
>				<include name="**/*.java"/>
>			</fileset>
>		</path>
>	</foreach>
></target>
><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}"/>
>	</exec>
></target>
>
>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: 
>http://www.nabble.com/Exec-task-not-to-show-a-console-window-un
>der-Windows-tf3033837.html#a8447963
>Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message