ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zwicky, William R ERDC-CERL-IL Contractor" <William.R.Zwi...@erdc.usace.army.mil>
Subject <sql> doesn't work (Ant 1.6)
Date Fri, 03 Oct 2003 03:32:24 GMT
I'm trying to use the <sql> task with MySQL, but it doesn't work.  If I use
the src attribute:

    <sql
      driver="${driver}"
      url="jdbc:mysql://${jdbc.server}/${jdbc.database}"
      userid="${mysql.ff.user}"
      password="${mysql.ff.passwd}"
      src="ff-schema.sql">
      <classpath
path="../jboss/deploy/mysql-connector-java-3.0.8-stable-bin.jar"/>
    </sql>

the line-breaks are removed, and #comments are misinterpreted.

If instead I use the loadfile task:

  <loadfile srcfile="ff-schema.sql" property="sql.ct"/>
  <sql ..>${sql.ct}</sql>

then MySQL apparantly only gets the first 419 chars.

I'm using Ant 1.6 from 30sep.  Anybody know what's going on?

-Bill

// William R. Zwicky
// USA-CERL  (217) 352-6511 x7405
// Champaign, IL



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message