Skip to content
Snippets Groups Projects
Commit c8e12c30 authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

compiles properties files to properties-MERGED in sleuthkit

parent 34779555
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment