Add native2ascii in build.xml

24 views
Skip to first unread message

Jordi Vilaplana

unread,
Nov 3, 2011, 7:37:03 AM11/3/11
to share-ext...@googlegroups.com
Hi,

I've seen that in the build.xml files of the share-extras projects native2ascii is not used, so the translation files need to encode special characters.
It wouldn't be better to make the conversion during the ant build process, as it is done in the language packs, so the source .properties files are more human-readable? 

This would make easier for external users to contribute with new translations.

It can be done by adding something like the following to the build-jar target:

<exclude name="**/*.properties" />
...
 
<!-- Conversion of properties files -->
<native2ascii encoding="UTF-8" src="${config.dir}" dest="${build.jar.dir}" includes="**/*.properties" ext=".properties" />
<!-- Minify JS -->
<yuicompress fromdir="${res.dir}" todir="${build.jar.dir}/META-INF" excludes="**/*-min.js" warn="${yuicompress.warn}">
            <include name="**/*.js" />
</yuicompress> 


Cheers,
Jordi.
Reply all
Reply to author
Forward
0 new messages