TOP

Libraries

Following the ModelAnt installation instructions, the .jar files of the ModelAnt components are always in the ANT's classpath. Therefore using ModelAnt is quite simple:

<typedef resource="path_1/antlib.xml"/>
<typedef resource="path_2/antlib.xml"/>

Library Description
meta
mof14
Tasks, types and macros of ModelAnt for MOF 1.4 integration
Usage:

<typedef resource="mof14/meta.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/core/antlib.xml"/>
antlib
net.mdatools.modelant.core
Tasks, types and macros of ModelAnt CORE
Usage:

<typedef resource="net/mdatools/modelant/core/antlib.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/util/antlib.xml"/>
<typedef resource="net/mdatools/modelant/repository/antlib.xml"/>
antlib
net.mdatools.modelant.repository
Tasks, types and macros of ModelAnt wrapping the original MDRANT task by Sun. This library provides an unified intreface to the MetaData Repository (MDR)
Usage:

<typedef resource="net/mdatools/modelant/repository/antlib.xml"/>
antlib
net.mdatools.modelant.template
Tasks, types and macros of ModelAnt Template engine.
Usage:

<typedef resource="net/mdatools/modelant/template/antlib.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/core/antlib.xml"/>
demo
net.mdatools.modelant.uml13.demo
Tasks, types and macros of ModelAnt uml13 demo wrapper.
The uml13 core wrappers provide the common complex logic as a middle tier between the model itself and the user code.
Usage:

<typedef resource="net/mdatools/modelant/uml13/demo/antlib.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/uml13/wrap/antlib.xml"/>
antlib
net.mdatools.modelant.uml13.reverse
Tasks, types and macros of ModelAnt UML 1.3 Reverse Engineering
Usage:

<typedef resource="net/mdatools/modelant/uml13/reverse/antlib.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/uml13/wrap/antlib.xml"/>
<typedef resource="net/mdatools/modelant/template/antlib.xml"/>
antlib
net.mdatools.modelant.uml13.wrap
Tasks, types and macros of ModelAnt UML 1.3 Wrapper.
The UML 1.3 core wrappers provide the common complex logic as a middle tier between the model itself and the user code.
Usage:

<typedef resource="net/mdatools/modelant/uml13/wrap/antlib.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/core/antlib.xml"/>
<typedef resource="uml13/meta.xml"/>
antlib
net.mdatools.modelant.util
Tasks, types and macros of ModelAnt utilities. They are ready for standalone use.
Usage:

<typedef resource="net/mdatools/modelant/util/antlib.xml"/>
assert
net.mdatools.modelant.util
Publishes macros to test Ant scripts Usage:

<typedef resource="net/mdatools/modelant/util/assert.xml"/>

NOTE: Importing this library makes the Ant properties variable.
datatypes
net.mdatools.modelant.util
Tasks, types and macros to access specific Java classes / data types
Usage:

<typedef resource="net/mdatools/modelant/util/datatypes.xml"/>

See: antlib.xml
meta
uml13
Holds the metamodel, specific tasks and types of UML 1.3

Provides macros that allow creating simple UML 1.3. models through simple Ant scripts.
  Usage:

   ... instantiate an extent ...
   <uml13.root.package name="..." extent="....">
     <uml13.package name="...">
        <uml13.tag>
        <uml13.class name="...">
          <uml13.tag>
          <uml13.field name="...">
            <uml13.tag>
   </uml13.root.package>

   <mdr.write.xmi extent="..." file="..."/>
  
Usage:

<typedef resource="uml13/meta.xml"/>

Imports:

<typedef resource="net/mdatools/modelant/core/antlib.xml"/>

meta
uml14
Holds the metamodel, tasks, types and macro definitions of UML 1.4 Usage: this allows usage wihout any namespace


Documentation generated by ant.doc Ant macro from ModelAnt by MDA Tools