build.xml - 无法创建任务或输入etl

时间:2016-03-08 17:33:13

标签: java apache ant

这里我已经在xml文件和我使用的标签中编写了代码。帮助我。

**build.xml:116: Problem: failed to create task or type etl**

Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

**build.xml**
<target name="install-database">
    <etl file="src/main/database/mysql/_database.xml" />
</target>

**_database.xml**

<etl>
     <connection id="database.init" driver="mysql" classpath="${classpath}"
        url="jdbc:mysql://${database.url}" user="${database.username}"
        password="${database.password}" />
    <connection id="database" driver="mysql" classpath="${classpath}"
</etl>

1 个答案:

答案 0 :(得分:1)

我认为你想在你的蚂蚁脚本中使用scriptella。 你可能会错过这一行

<taskdef resource="antscriptella.properties" classpath="/path/to/scriptella.jar[;additional_drivers.jar]"/>