【问题标题】:build.xml - failed to create task or type etlbuild.xml - 未能创建任务或键入 etl
【发布时间】:2016-03-08 17:33:13
【问题描述】:

这里我已经在 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>

【问题讨论】:

  • etl 应该是什么意思?
  • 是_database.xml中使用的标签

标签: java apache ant


【解决方案1】:

我想你想在你的 ant 脚本中使用 scriptella。 你可能错过了这一行

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

【讨论】:

    猜你喜欢
    • 2016-04-25
    • 1970-01-01
    • 1970-01-01
    • 2014-06-25
    • 1970-01-01
    • 2015-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多