Source

main-silver / beans / sub.locale.xml

<?xml version="1.0" encoding="UTF-8" ?>

<!-- arguments below are taken form the upper ANT task -->

<!-- basedir == directory, where the localizable files are -->
<!-- destdir == directory, where will be saved final JAR file -->
<!-- locale  == a locale ... files with these locale will be added to the archive (JAR file) -->

<!-- idedir  == part in the IDE, where will be stored final file -->


<project name="Sub_beans" default="sub_beans" basedir="${dir}">

	<!-- setup the destination directory -->
	<property name="idedir" value="modules/locale" />
        
	<target name="sub_beans">
                <!-- create full destination directory -->
                <mkdir dir="${destdir}/${idedir}" />
                <!-- create final jar file -->
                <jar jarfile="${destdir}/${idedir}/beans_${locale}.jar" basedir="${basedir}/src" includes="**/*_${locale}.*" />
        </target>

</project>