|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.resources.IndexedResourceCompiler
public final class IndexedResourceCompiler
Resource compiler. This class is run from the command line at compile time only.
IndexedResourceCompiler
scans for .properties
files and copies their content
to .utf
files using UTF8 encoding. It also checks for key validity and checks values
for MessageFormat
compatibility. Finally, it creates a FooKeys.java
source
file declaring resource keys as integer constants.
This class must be run from the maven root of Geotools project.
IndexedResourceCompiler
and all FooKeys
classes don't need to be included in the
final JAR file. They are used at compile time only and no other classes should keep reference to
them.
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two resource keys. |
static void |
main(java.lang.String[] args)
Run the compiler for GeoTools resources. |
static void |
main(java.lang.String[] args,
java.io.File sourceDirectory,
java.lang.Class<? extends IndexedResourceBundle>[] resourcesToProcess)
Run the resource compiler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Method Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
o1
and o2
are usually String
objects representing resource keys (for example, "MISMATCHED_DIMENSION
"), but
may also be Map.Entry
.
compare
in interface java.util.Comparator<java.lang.Object>
public static void main(java.lang.String[] args, java.io.File sourceDirectory, java.lang.Class<? extends IndexedResourceBundle>[] resourcesToProcess)
args
- The command-line arguments.sourceDirectory
- The base directory for "java"
"resources"
sub-directories. The directory structure must be consistent with Maven conventions.resourcesToProcess
- The resource bundle base classes
(e.g. Vocabulary.class}
).public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |