ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan \"Rambius\" Ivanov" <rambiusparkisan...@yahoo.com>
Subject Re: problem with sql task
Date Mon, 06 Feb 2006 04:05:22 GMT
Hello,

--- Andrew Goktepe <andrewgoktepe@gmail.com> wrote:
> <sql driver="oracle.jdbc.driver.OracleDriver"  ...
> 
> and do this before running the script so that Ant
> can find the driver class:
> 
> set CLASSPATH=%CLASSPATH%;c:\path\to\classes12.jar

This is correct, but it is more appropriate to use
classpath attribute or nested classpath:

<sql driver="oracle.jdbc.driver.OracleDriver"  ...>
  <classpath>
    <pathelement location="/path/to/classes12.jar"/>
  </classpath>
</sql>

In this case the build script will not be dependent on
  external envorinment variables.

Regards
Ivan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message