Hi
if it helps I've used these tasks for Sqlplus and imp/exp
<!-- ===================================================================
-->
<!-- backup whouseenv
-->
<!-- ===================================================================
-->
<target name="BackupWHEnv" if="whouseenv" depends="backup">
<echo message="Backup Warehouse Environment.."/>
<exec dir="${fromdevice}" executable="cmd.exe" >
<arg line="/c"/>
<arg line="sqlplus"/>
<arg line="${login}"/>
<arg line="@${com-path}\envparamcreate"/>
</exec>
<exec dir="${fromdevice}" executable="cmd.exe" >
<arg line="/C"/>
<arg line="exp.exe"/>
<arg line="userid=${login}"/>
<arg line="file=${fromdevice}\oraenvbackup.dmp"/>
<arg line="parfile=${fromdevice}\envparam.dat"/>
<arg line="log=${com-path}\oraenvbackup.log"/>
</exec>
</target>
The scripts were normal oracle sql scripts that SQLPlus would accept at the
command line
-----Original Message-----
From: Olle Hallin [mailto:olle.hallin@hit.se]
Sent: 12 March 2002 13:26
To: Ant Users List
Subject: How do I manage Oracle applications from Ant?
Hello!
What is the best way to manage Oracle applications from Ant?
We intend to use Perforce for managing PL/SQL scripts that creates tables
and stored procedures.
Then we use Ant for running those .sql files through <sql> tasks.
The problem is that the scripts, which work fine under the Oracle IDE, does
not work under Ant.
The only way to get them through the <sql> task is to remove all semicolons
but the last, which of course makes them invalid in the Oracle end.
I have tried both the Oracle thin JDBC driver, and i-net SEROPTO, with the
same results, so I believe that this is an Ant problem.
BTW, we use the same approach for managing MS Transact-SQL code, with better
result.
Regards,
Olle Hallin
----- Original Message -----
From: "Mike Sexter" <Mike.Sexter@oracle.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, March 12, 2002 12:26 AM
Subject: Re: antcontrib: TryCatchTask.java problem
> Upgrading to the 1.5 alpha fixed the TaskContainer problem. Thanks. FYI,
we have a fairly sophisticated set of ant scripts, which in addition to
being run manually, are run through a CruiseControl ant script and the 1.5
alpha does not appear to have broken anything. Good job!
>
>
> - Mike
>
>
> ----------
> Mike Sexter
> (650)633-8603
> Principal Member of Technical Staff
> <http://www.oraclemobile.com/>OracleMobile - Online Studio
> http://msexter.tripod.com
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
***************************************************************************
This email message contains confidential information for the above addressee only. If you
are not the intended addressee you must not disclose or use the information in any manner
whatsoever.
Any opinion or views contained in this email message are those of the sender, do not represent
those of the Company in any way and reliance should not be placed upon its contents.
Unless otherwise stated this email message is not intended to be contractually binding. Where
an Agreement exists between our respective companies and there is conflict between the contents
of this email message and the Agreement then the terms of that Agreement shall prevail.
Abbey National Treasury Services plc. Registered in England. Registered Office: Abbey House,
Baker Street, London NW1 6XL. Company Registration No: 2338548. Regulated by the FSA
***************************************************************************
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>