| java.lang.Object org.geotools.resources.IndexedResourceCompiler
IndexedResourceCompiler | final public class IndexedResourceCompiler implements Comparator(Code) | | 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.
since: 2.4 version: $Id: IndexedResourceCompiler.java 26165 2007-07-06 17:02:26Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public int | compare(Object o1, Object o2) Compares two resource keys. | public static void | main(String[] args, File sourceDirectory, Class[] resourcesToProcess) Run the resource compiler.
Parameters: args - The command-line arguments. Parameters: sourceDirectory - The base directory for "java" "resources" sub-directories. | public static void | main(String[] args) Run the compiler for GeoTools resources. |
compare | public int compare(Object o1, Object o2)(Code) | | Compares two resource keys. Object
o1 and
o2 are usually
String objects representing resource keys (for example, "
MISMATCHED_DIMENSION "), but
may also be
java.util.Map.Entry .
|
main | public static void main(String[] args, File sourceDirectory, Class[] resourcesToProcess)(Code) | | Run the resource compiler.
Parameters: args - The command-line arguments. Parameters: sourceDirectory - The base directory for "java" "resources" sub-directories. The directory structure must be consistent with Maven conventions. Parameters: resourcesToProcess - The resource bundle base classes(e.g. .class} ). |
main | public static void main(String[] args)(Code) | | Run the compiler for GeoTools resources.
|
|
|