ant - uptodate task : regenerate only outdated files
问题 I'm new to ant and rather used to Makefiles. In a project, the i18n language modules named Message_zh.class etc are built unconditionally from zh.po etc with every compile, although they already exist, which wastes much time. I figured these are the relevant parts of build.xml: <target id="msgfmt" name="msgfmt"> <mkdir dir="po/classes" /> <propertyregex property="filename" input="${file}" regexp="[.]*/po/([^\.]*)\.po" select="\1" casesensitive="false" /> <exec dir="." executable="msgfmt">