* migration ant task fail when path to the sql migration script files have the space character.

This commit is contained in:
Heng Sin Low 2008-10-05 13:41:33 +00:00
parent 65bd6542bb
commit c447821639
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
<echo message="Loading file ${file.name}" />
<exec dir="${oracle.home}/bin" executable="${oracle.home}/bin/sqlplus" resultproperty="sqlplus.result" output="sqlplus.log" append="true">
<arg line="${oracle.connect.param}" />
<arg line="@${file.name}" />
<arg line='@"${file.name}"'/>
</exec>
<echo message="File ${file.name} status ${sqlplus.result}" />
<echo append="true" file="build.log">File ${file.name} status ${sqlplus.result}</echo>

View File

@ -40,7 +40,7 @@
<arg line="-h ${postgresql.host}" />
<arg line="-d ${postgresql.database} -q" />
<arg line="-U ${postgresql.user}" />
<arg line="-f ${file.name}" />
<arg line='-f "${file.name}"' />
<env key="PGPASSWORD" value="${postgresql.password}" />
</exec>
<echo message="File ${file.name} status ${psql.result}" />