diff --git a/bindings/java/build.xml b/bindings/java/build.xml index 99ac0c26debfb847a48ae2ee7cd24abad12cef6b..43db6ff196e24ea6f3c1959f8327ec808746b59f 100644 --- a/bindings/java/build.xml +++ b/bindings/java/build.xml @@ -129,15 +129,19 @@ <javac debug="on" srcdir="${src}" destdir="${build}" classpathref="libraries" includeantruntime="false"> <compilerarg value="-Xlint"/> </javac> + <!-- Copy Bundle*.properties files into DataModel build directory, so they are included in the .jar --> <copy todir="${build-datamodel}"> <fileset dir="${src}" includes="**/*.properties"/> </copy> - + <!-- Verify sample compiles --> <javac debug="on" srcdir="${sample}" destdir="${build}" includeantruntime="false"> <classpath refid="libraries"/> </javac> + + <!--Copy .properties to .properties-MERGED --> + <antcall target="copy-bundle" /> </target> <target name="dist" depends="check-build, init-ivy, compile, copyLibs" unless="up-to-date" description="generate the distribution"> @@ -202,4 +206,16 @@ </exec> </target> + <target name="copy-bundle"> + <!-- the externalized strings in 'src' are in both the java files as annotations and in the Bundle.property files. + The strings get merged during compilation. This target copies that merged file into src so that it can be checked + in and used as a basis for translation efforts --> + <copy todir="src"> + <fileset dir="build"> + <include name="**/Bundle.properties"/> + </fileset> + <globmapper from="*" to="*-MERGED"/> + </copy> + </target> + </project>