don't run gettext if 'require.gettext' is set to false

This commit is contained in:
kytv
2013-01-10 16:51:06 +00:00
parent e34cd0ba3f
commit 41af00a7d6
7 changed files with 28 additions and 10 deletions

View File

@ -8,6 +8,9 @@
<target name="prepare">
<!-- run from top level build.xml to get dependencies built -->
</target>
<condition property="no.bundle">
<isfalse value="${require.gettext}" />
</condition>
<condition property="depend.available">
<typefound name="depend" />
</condition>
@ -113,7 +116,7 @@
</target>
<!-- this is tricky because the message classes go in the jar, not in the war -->
<target name="bundle" depends="jar1, precompilejsp" >
<target name="bundle" depends="jar1, precompilejsp" unless="no.bundle">
<!-- Update the messages_*.po files.
We need to supply the bat file for windows, and then change the fail property to true -->
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >