Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 生成build.xml时出现错误“源文件不存在”_Java_Ant - Fatal编程技术网

Java 生成build.xml时出现错误“源文件不存在”

Java 生成build.xml时出现错误“源文件不存在”,java,ant,Java,Ant,我正在运行ant并得到错误信息: build.xml:1004:源文件不存在 在1004字符串上,我看到: <macrodef name="run-sql-file"> <attribute name="file.name"/> <attribute name="user"/> <attribute name="password"/> <sequential> <sql

我正在运行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需要什么文件

谢谢

编辑1

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

听起来它在抱怨src=@{file.name}是的,谢谢。但是,我如何才能确切地知道它需要什么文件呢?由${data}/ddl/tables.jdbc.sql引用的文件是否可用?谢谢!我决定了我的问题。我将目录从ddl重命名为ddl,问题就消失了。