Ant task to check if a database (connection) exists?
问题 is there a possibility in ANT to check whether a database (connection) exists or not without failing the build? For example: <target name="check-database-available"> <sql classpath="${oracle.jar}" driver="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@${my.db.host}:${my.db.port}:${my.db.sid}" userid="${my.db.user}" password="${my.db.pw}" onerror="continue" errorproperty="exit.status"> select * from dual; </sql> <echo message="### exit status = ${exit.status}" /> </target> This will always