I try to connect to sql by ant and do successful.
but if I want give sql connection url from user by input tag 
I must check if it is correct or not. but I can't do it. and
if url is incorrect my build job will terminate without any 
announcement to user.
If we can handle Exceptions and Error in build file and do some work after 
failure?

my related part of build.xml:

                <sql classpath="sql/${jdbc.jar}"
                        driver="${jdbc.driver}"
                        src="${temp.dir}/sqltemp/all.sql"
                        
url="jdbc:mysql://${db.hostname}:${db.port}/?autoReconnect=true"
                        userid="${db.username}"
                        password="${db.password}"
                        onerror = "continue"
                        />

-- 
View this message in context: 
http://www.nabble.com/Handel-failure-in-sql-tag-tp16985551p16985551.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to