ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JMAnt <darvaze2...@yahoo.com>
Subject Handel failure in sql tag
Date Wed, 30 Apr 2008 15:34:27 GMT


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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message