我正在运行ant并收到错误:
build.xml:1004:源文件不存在!
在1004字符串上我看到:
<macrodef name="run-sql-file">
<attribute name="file.name"/>
<attribute name="user"/>
<attribute name="password"/>
<sequential>
<sql
driver="oracle.jdbc.driver.OracleDriver"
classpath="${templateResources}/genericLibs/ojdbc14.jar"
url="jdbc:oracle:thin:@${ds_server}:${ds_sid}"
userid="@{user}"
password="@{password}"
src="@{file.name}"
>
</sql>//it's 1004 string
</sequential>
我如何理解ant需要什么文件?
感谢。
EDIT1。
1045字符串:
<target name="sql" depends="drop-all-tables, drop-all-sequences">
<!-- DDL : tables & stuff -->
<echo message="Purging 10g recyclebin"/>
<sql-query sql="PURGE RECYCLEBIN" user="${ds_username}" password="${ds_password}"/>
<run-sql-file file.name="${data}/ddl/tables.jdbc.sql" user="${ds_username}" password="${ds_password}"/> //1045