Menu

#35 Suppressing warning messages

open
nobody
None
5
2006-06-02
2006-06-02
Anonymous
No

I am currently using NAnt to restore a legacy Oracle
database using Oracle's import utility. Unfortunately
when executing NAnt, warning messages are generated
for each table row completion message:

[exec] . . importing
table "UPDPARAMETER" 72 rows
imported
[exec] . . importing
table "UPDSPCHIST" 0 rows
imported
[exec] . . importing
table "UPDSTARGATECNT" 0 rows
imported
[exec] . . importing
table "UPDSTARGATESPEC" 0 rows
imported
[exec] . . importing
table "UPDVERSION" 1 rows
imported
[exec] . . importing
table "USERPREF" 0 rows
imported
[exec] . . importing
table "USERTEAMS" 0 rows
imported
[exec] . . importing
table "USRAU" 0 rows
imported
[exec] . . importing
table "USRGRP" 1 rows
imported
[exec] . . importing
table "USRINFO" 4 rows
imported
[exec] . . importing
table "USRMAST" 4 rows
imported
[exec] . . importing
table "VAG" 0 rows
imported
[exec] . . importing
table "VAGOVERRIDE" 0 rows
imported
[exec] . . importing
table "VALIDATION" 0 rows
imported
[exec] . . importing
table "VERSION" 2 rows
imported
[exec] . . importing
table "WRKFCT" 0 rows
imported
[exec] . . importing
table "WRKMAS" 0 rows
imported
[exec] . . importing
table "WRKMOD" 0 rows
imported
[exec] . . importing
table "ZIPCODE" 0 rows
imported
[exec] About to enable constraints...
[exec] Import terminated successfully without
warnings.

BUILD SUCCEEDED - 0 non-fatal error(s), 275 warning(s)

As you can see, the build was successful, but the
warnings are generated. I have tried to use the
output attribute to redirect the output to a file,
but it still appears in the command shell as well as
the output file. I have also tried using
useruntimeengine="true", but that didn't work either.
Below is a copy of my script:

<target name="import" description="import oracle
database">
<exec program="imp"
failonerror="false" useruntimeengine="true"
workingdir="D:\OracleData" verbose="false">
<arg
value="testdb/testdb@oracleserver"/>
<arg value="parfile=imp.par"/>
</exec>
</target>

I can be reached via email at: kehopkins@csstars.com.
Thank you for your time and attention to this matter.

Regards,

-Kevin

Discussion


Log in to post a comment.