public final class IndexedResourceCompiler extends Object implements Comparator<Object>
.propertiesfiles and copies their content to
.utffiles using UTF8 encoding. It also checks for key validity and checks values for
MessageFormatcompatibility. Finally, it creates a
FooKeys.javasource 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
|Modifier and Type||Method and Description|
Compares two resource keys.
Run the compiler for GeoTools resources.
Run the resource compiler.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Stringobjects representing resource keys (for example, "
MISMATCHED_DIMENSION"), but may also be
public static void main(String args, File sourceDirectory, Class<? extends IndexedResourceBundle> resourcesToProcess)
args- The command-line arguments.
sourceDirectory- The base directory for
"resources"sub-directories. The directory structure must be consistent with Maven conventions.
resourcesToProcess- The resource bundle base classes (e.g.
public static void main(String args)
Copyright © 1996–2020 Geotools. All rights reserved.