Goals

Goal Description
ocltf:test-translation

Runs the Translation tests for any translation test XML files found.

A Translation test file is an XML file existing in the directory test/translations/<translation-library name> that begins with 'TranslationTest' and adhere's to the TranslationTest Schema.

NOTE: To trace the parsing of the expressions being translated, add the property trace to your command line (i.e. maven ocltf:test-translation -Dtrace=true). This is helpful when developing a Translator as this allows you to see exactly what/when different fragments of the expression are being parsed.

NOTE: To test only one translation at a time, add the property translation to your command line (i.e. maven ocltf:test-translation -Dtranslation=query.EJB-QL). This is helpful when either adding a new translation file to your Translation-Library, or when testing between multiple translations, and you don't want to have to sort through the output from more than one.

maven ocltf:generate-translation-library Generates the entire initial directory structure and any required files to begin development of a Translation-Library.

NOTE: You must specify the library and translations properties in order to run this goal (i.e maven ocltf:generate-translation-library -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:generate-translation-tests Generates test files for each translation specified by the translations property.

NOTE: You must specify the library and translations properties in order to run this goal (i.e maven ocltf:generate-translation-tests -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:generate-translator Generates the initial Translator file.

NOTE: You must specify the library and translations properties in order to run this goal (i.e maven ocltf:generate-translator -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:generate-translator-exception Generates an exception class extending TranslatorException for the specified 'library'. Any exception thrown by the Translator should be an instance of this exception class.

NOTE: You must specify the library property in order to run this goal (i.e maven ocltf:generate-translator-exception -Dlibrary=query).

ocltf:generate-translation-library-descriptor Generates the initial Translation-Library descriptor.

NOTE: You must specify the library and translations properties in order to run this goal (i.e ocltf:generate-translation-library-descriptor -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:generate-translations Generates the initial translation files.

NOTE: You must specify the library and translations properties in order to run this goal (i.e maven ocltf:generate-translations -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:generate-translation-library-pom Generates an initial POM (project.xml) for a new Translation-Library.

NOTE: You must specify the library and translations properties in order to run this goal (i.e ocltf:generate-translation-library-pom -Dlibrary=query -Dtranslations=EJB-QL,Hibernate-QL).

ocltf:test-regex Given a regular expression and an expression, this goal allows us to determine if the regular expression matches on the expression. This is used for developing Translation-Library fragments, when you want to know if the fragment name is structured correctly as a regular expression. Its fast at testing regular expressions if you use it in conjunction with the the Maven Console Plugin. NOTE: two properties are required to run it regex which specifies the regular expression to test and exp, which is the expression to test against.