buildframework/helium/tools/localisation/localisation-32.ant.xml
branchhelium-7.0.x
changeset 593 4367a1b2db65
parent 179 d8ac696cc51f
--- a/buildframework/helium/tools/localisation/localisation-32.ant.xml	Wed Jun 23 16:25:55 2010 +0300
+++ b/buildframework/helium/tools/localisation/localisation-32.ant.xml	Wed Jun 23 16:36:23 2010 +0300
@@ -376,10 +376,10 @@
                 <hlm:createDeltaZipMacro variant="@{variant}" />
                 <!-- getting all languages to localise -->
                 <var name="localisation.languages" unset="true"/>
-                <exec executable="python" outputproperty="localisation.languages" dir="${build.drive}/" failonerror="${failonerror}">
+                <exec executable="python" outputproperty="localisation.languages.output" dir="${build.drive}/" failonerror="${failonerror}">
                     <arg line="${helium.dir}/tools/localisation/getalllanguages.py ${localisation.language.file} @{variant}"/> 
                 </exec>
-                
+                <propertyregex property="localisation.languages" input="${localisation.languages.output}" override="true" regexp="((?: ?\d+)+)$" select="\1"/>
                 <echo>Localising ${localisation.languages}</echo>
                 <propertyregex property="localisation.log" input="${build.log.dir}/localisation_${localisation.languages}.html" regexp="\s+" replace="_" override="true"/>
                 <echo>Localising using ${localisation.tool}.</echo>