我不得不執行的所有SQL文件的文件夾在用sqlplus命令問題執行與Ant腳本文件夾中的所有SQL文件(適用於任務)
我可以運行一個文件或第一個文件,此代碼
<apply executable="sqlplus" dir="." parallel="false">
<!-- <arg value="-S" /> -->
<arg line="${db.user}/${db.pwd}@'${db.sid}'" />
<arg value="@${db.run.build.script}" /> this is working, which is for executing one file
<!-- <arg value="--e source" /> -->
<srcfile/>
<fileset dir="..\..\Documents\test\Database\SQL\common\test"
casesensitive="no" description="take all sql files">
<patternset>
<include name="**/*.sql" />
</patternset>
</fileset>
</apply>
;但不能繼續進行其他文件
我已經嘗試過與應用任務的各種選項;但仍不能成功;我認爲第二個文件在開始導致問題時沒有「@」。
任何幫助將不勝感激。
的'srcfile'嵌套元素接受一個叫做'prefix'參數可能會有幫助。請參閱http://ant.apache.org/manual/Tasks/apply.html –