Issue 42 in gettext-commons: Only compile updated PO files in Maven

7 views
Skip to first unread message

codesite...@google.com

unread,
Apr 30, 2010, 8:07:08 PM4/30/10
to gettext-co...@googlegroups.com
Status: New
Owner: ----

New issue 42 by cdauth: Only compile updated PO files in Maven
http://code.google.com/p/gettext-commons/issues/detail?id=42

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.

--
You received this message because you are subscribed to the Google Groups "Gettext Commons Development Discussion" group.
To post to this group, send email to gettext-co...@googlegroups.com.
To unsubscribe from this group, send email to gettext-commons-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gettext-commons-devel?hl=en.

codesite...@google.com

unread,
Jun 4, 2010, 9:01:17 AM6/4/10
to gettext-co...@googlegroups.com

Comment #1 on issue 42 by pingw33n: Only compile updated PO files in Maven
http://code.google.com/p/gettext-commons/issues/detail?id=42

Here's patch that makes DistMojo skip compiling depending on timestamps
of .po and
target files.

Attachments:
maven-gettext-plugin-patch.patch 1.5 KB

codesite...@google.com

unread,
Jun 5, 2010, 8:18:18 AM6/5/10
to gettext-co...@googlegroups.com

Comment #2 on issue 42 by bergerfx: Only compile updated PO files in Maven
http://code.google.com/p/gettext-commons/issues/detail?id=42

thanks for the patch! I'll to look at it when I find time.

codesite...@google.com

unread,
Jun 6, 2010, 7:59:08 PM6/6/10
to gettext-co...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 42 by bergerfx: Only compile updated PO files in Maven
http://code.google.com/p/gettext-commons/issues/detail?id=42

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.

Reply all
Reply to author
Forward
0 new messages