ok, another idea: modify
- subclass SQLExec
- overwrite execSQL(String sql, PrintStream out)
-- copy the implementation from SQLExec
-- add your logging
then do a and use that.
It seems that you are interesting in redirecting that part:
SQLWarning warning = conn.getWarnings()
You didn't test the ideas. But I have, at least a)
No, a) does not work because the error is not redirected but doubled!
b) sounds too complicated.
[EMAIL PROTECTED] wrote:
Just some ideas ...
a)
b) custom Logger
- if a special output comes, it starts/ends logging
- special outp
For people in/near Europe, the ApacheCon 2007 conference will soon be
with us
* Friday 23 of March is the cut-off date for being able to register at
the Mövenpick Hotel for the low conference rate of €160. *
Ant users should note that most of the EU-based ant developers will be
there; this
Just some ideas ...
a)
b) custom Logger
- if a special output comes, it starts/ends logging
- special output could be done with mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 21. März 2007 14:35
>An: Ant Users List
>Betreff: Re: How to silence errors in SQL task or log
>
>Internal, external
Internal, external ... didn't matter for my question. There is a error stream
which I would like to conveniently redirect. The easiest thing is in the Ant
script itself. In one SQL call I want to redirect it, in another not. Setting
SQL level globally to info would not fit. There are still ways
Hi Kriss--as with many OSS tools, the best examples
are in the testsuite ;). The tricky thing, IMO, about
resource comparators/selectors is that in order to
avoid namespace conflicts with other similarly-named
entities they were placed in an internal antlib and
only available via that antlib or ex
Farid Izem wrote:
Hi All,
I have write a ant script which check the availibility of Oracle listener
based on tcp reachibility (waitfor task) and jdbc connection (sql task).
I'd like to make somehing like that :
Is there something i can do easily or do i need to write my own ant task ?
Hans Schwaebli wrote:
Can anybody tell my why cannot be used for the SQL task?
because sql task is not executing an external program
I want to silence the errors if they occur when running the SQL task. But it
didn't work. Any solution? Best would be to log all errors of a certain SQL
ta
Sorry, I forgot to set system vars before
- Original Message -
From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Wednesday, March 21, 2007 11:37 AM
Subject: Ant: mkdir and system vars
Hi,
here is a part of my build file
destdir="${env.ALL_
Hi,
here is a part of my build file
destdir="${env.ALL_TESTS_BUILD_DIR}/FrameworkTestCase1" fork="true"/>
When I execute it, ant creates directory converting to the right value of
system variable ${env.ALL_TESTS_BUILD_DIR}.
It happends when mkdir executes. But when folder w
Look at the script ant.bat, it does similar things (the classpath in your
script is too short).
Gilles
> -Original Message-
> From: Denis Bessmertnyj [mailto:[EMAIL PROTECTED]
> Sent: mercredi 21 mars 2007 9:59
> To: user@ant.apache.org
> Subject: Ant: unable to find a javac compiler when
Thank you, I forgot to add fork="true"
- Original Message -
From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 21, 2007 11:01 AM
Subject: ANT: unable to find a javac compiler when I invoke ant from cmd
script (UPDATE)
And I have the next target in my build.x
And I have the next target in my build.xml
- Original Message -
From: "Denis Bessmertnyj" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 21, 2007 10:59 AM
Subject: Ant: unable to find a javac compiler when I invoke ant from cmd
script
Hi,
I have build.cmd with t
Hi,
I have build.cmd with the next code:
set
ANT_CLASSPATH=%JCLASSES_DIR%\lib\ant.jar;%JCLASSES_DIR%\lib\catalina-ant.jar;%JCLASSES_DIR%\lib\ant-launcher.jar;
call java -classpath %ANT_CLASSPATH%;%CLASSPATH%
org.apache.tools.ant.Main -buildfile %ALL_TESTS_SRC_DIR%\build.xml
The last command,
I would write a custom task which stores the listener-adresses as property.
Inside your code you could reuse the Ant classes if you need ...
(oata.taskdefs, oata.util)
Jan
...
class GetOracleListenerTask extends Task {
String property; // setter
public execute() {
List
15 matches
Mail list logo