2016-03-08 66 views
0

这里我已经将代码写入了xml文件和我已经使用的标签。帮帮我。build.xml - 无法创建任务或输入etl

**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> 
+0

'etl'应该表示什么? – Tunaki

+0

它是在_database.xml中使用的标记 –

回答

1

我推测你想在你的ant脚本中使用scriptella。 您可能会缺少这一行

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

它比thanx –

相关问题