Author: desruisseaux
Date: Mon Sep 24 12:21:00 2012
New Revision: 1389327
URL: http://svn.apache.org/viewvc?rev=1389327&view=rev
Log:
Compile the localized resources in the utility module at build time using our Maven mojo.
Modified:
sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/IndexedResourceCompiler.java
sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/ResourceCompilerException.java
sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/ResourceCompilerMojo.java
sis/trunk/sis-utility/pom.xml
Modified: sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/IndexedResourceCompiler.java
URL: http://svn.apache.org/viewvc/sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/IndexedResourceCompiler.java?rev=1389327&r1=1389326&r2=1389327&view=diff
==============================================================================
--- sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/IndexedResourceCompiler.java (original)
+++ sis/trunk/sis-build-helper/src/main/java/org/apache/sis/resources/IndexedResourceCompiler.java Mon Sep 24 12:21:00 2012
@@ -26,12 +26,16 @@ import java.util.regex.Pattern;
* Reads a given list of {@code .properties} files and copies their content to {@code .utf} files
* using UTF-8 encoding. It also checks for key validity and checks values for {@link MessageFormat}
* compatibility. Finally, it writes the key values in the Java source files.
+ *
+ * This class is independent of any Mojo and could be executed from the command-line.
+ * For now we keep it package-private, but we could consider to enable execution from
+ * the command-line in a future version if this happen to be useful.
*
* @author Martin Desruisseaux (IRD, Geomatys)
* @since 0.3 (derived from geotk-1.2)
* @version 0.3
*/
-public class IndexedResourceCompiler implements FilenameFilter, Comparator