jgettext/gettext-commons

Only compile updated PO files in Maven

Closed this issue · 3 comments

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

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:

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

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

  • Changed state: Fixed