gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 10:16:15 25 4
gpt4 key购买 nike

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

最佳答案

我认为您想在 ant 脚本中使用 scriptella。您可能错过了这一行

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

关于java - build.xml - 无法创建任务或输入 etl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35874105/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com