Naming conventions for ModelAnt tasks:
Java package names
- The package name of any Java class of core component should be formed as:
net.mdatools.<product>.<component>
followed by
taskif the class is an Ant Taskconditionif the class is an Ant Conditiontypeif the class is a public Ant Types
- The package name of any Java class of meta-model specific component should be:
net.mdatools.<product>.<meta-model>.<component>
followed by:
taskif the class is an Ant Taskconditionif the class is an Ant Conditiontypeif the class is a public Ant Types
- The package name of model elements, of a defined by OMG meta-model should be
org.omg.<meta-model>
followed by model-specific package names, for example:
org.omg.uml13.foundation.core.ModelElement - The package name of model element wrapper, of a defined by OMG meta-model should be
org.omg.<meta-model>.<component>
followed by model-specific package names, for example:
org.omg.uml13.wrap.foundation.core.WrapModelElement - Any component-specific public constants should be held in
Conventionclass in the component’s root package
AntLib file names
- The AntLib definitions file of a core component should be named:
net/mdatools/<product>/<component>/antlib.xml
in
src/xmldirectory - The AntLib definitions file of a meta-model specific component should be named:
net/mdatools/<product>/<meta-model>/<component>/antlib.xml
in
src/xmldirectory
