weidongtoml / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
0 stars 0 forks source link

Only compile updated PO files in Maven #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In my Maven projects, I configured the maven-gettext-plugin to
automatically run the dist goal in the compile phase. At the moment, every
time I run mvn compile, the gettext maven plugin compiles all existing PO
files using msgfmt, which takes a lot of time. The maven compiler plugin
instead compiles only those files that have been changed since the last
execution. It would be great if the maven gettext plugin also only compiled
those PO files whose compiled versions are out of date.

Original issue reported on code.google.com by cda...@googlemail.com on 1 May 2010 at 12:06

GoogleCodeExporter commented 8 years ago
Here's patch that makes DistMojo skip compiling depending on timestamps of .po 
and 
target files.

Original comment by pingw33n@gmail.com on 4 Jun 2010 at 1:00

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for the patch! I'll to look at it when I find time.

Original comment by berge...@gmail.com on 5 Jun 2010 at 12:17

GoogleCodeExporter commented 8 years ago
A slightly different implementation of the feature has been committed to svn 
along 
with several bug fixes for the maven-gettext-plugin.

I also uploaded a new version 1.2.1 of the maven-gettext-plugin to the 
repository.

Original comment by berge...@gmail.com on 6 Jun 2010 at 11:58