ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21228] New: - sql-task: whitespace after jdbc driver name gives a classloader exception
Date Tue, 01 Jul 2003 14:21:35 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21228>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21228

sql-task: whitespace after jdbc driver name gives a classloader exception

           Summary: sql-task: whitespace after jdbc driver name gives a
                    classloader exception
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: robert.vanderveer@telecom.tno.nl


I set my driver name & classpath in a environment variable in a batchfile. Here 
I accidentally typed an extra space after the name of the driver. Therefor the 
driver could not be found. 

file:C:/cvsLocal/klantbarometer/schema.xml:48: Class Not Found: JDBC driver 
com.microsoft.jdbc.sqlserver.SQLServerDriver  could not be loaded

It took me an hour to find this, overlooking the extra space after the 
drivername.
Maybe an idea to do a trim() on the parameters of the sql-task (and maybe 
others).

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


Mime
View raw message