Skip Headers

# Declaring TopLink Workbench Tasks

Previous

Next

After you declare the TopLink Workbench task definitions (see Table: TopLink Workbench Ant Type Definitions) and data definitions (see Table: TopLink Workbench Ant Task Library Dependencies) in the `toplink-ant-lib.xml` file as Example: Declaring TopLink Workbench Ant Task and Data Types in a toplink-ant-lib.xml File shows, you can use a TopLink Workbench task in a `build.xml` file, as shows:

Declaring TopLink Workbench Ant Task and Data Types in a toplink-ant-lib.xml File

    <?xml version="1.0"?>
    <antlib>
        <taskdef name="mappings.export"
            classname="oracle.toplink.workbench.ant.taskdefs.ExportDeploymentXMLTask" />

        <taskdef name="mappings.validate"
            classname="oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask" />

        <taskdef name="session.validate"
            classname="oracle.toplink.workbench.ant.taskdefs.SessionValidateTask" />

        <typedef name="ignoreerror"
            classname="oracle.toplink.workbench.ant.typedefs.IgnoreError" />

        <typedef name="ignoreerrorset"
            classname="oracle.toplink.workbench.ant.typedefs.IgnoreErrorSet" />

        <typedef name="loginspec"
            classname="oracle.toplink.workbench.ant.typedefs.LoginSpec" />
    </antlib>

Specifying the toplink-ant-lib.xml File in the build.xml File

    <project name="MyBuild" default="validate.session" basedir="." xmlns:toplink="toplinklib">    <typedef file = "toplink-ant-lib.xml" classpathref = "mw.classpath" uri = "toplinklib" />...</project>