ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <billr...@attglobal.net>
Subject RE: Sql Task -- quote marks
Date Mon, 05 Apr 2004 21:52:08 GMT
If your problem with the quote marks is in the ant script you can use &quote; in place
of
each double-quote mark that is not an attribute delimiter.  The ant script is an XML file
so the entity names should work for you.

HTH
Thanks.  Bill

Bill Rich
Wilandra Consulting LLC
1325 Addiewell Place
San Jose, CA  95120-3905
phone:      +1 408 268-2452
mobile:     +1 408 410-9713
Santa Cruz: +1 831 464-9007
fax:        +1 413 669-9716
billrich@wilandra.com or billrich@attglobal.net
http://www.wilandra.com

-----Original Message-----
From: jax@purematrix.com [mailto:jax@purematrix.com]
Sent: Monday, April 05, 2004 2:00 PM
To: Ant Users List
Subject: Sql Task -- quote marks


I think I've isolated a problem in my Ant use of the Sql task. How do I pass a statement
that contains
doublequotes?

     select @querystring = "alter table " +  @tmptablename + " drop constraint "  +
@constraintname

This very apparently is not parsed correctly by the Sql task. I'm rooting through
SQLExec.java, but does
anyone have a quick answer? And is that answer somewhere in TFM but I have missed it?
Thanks.

--
Jack J. Woehr            # "[F]ar in the empty sky a solitary esophagus slept
http://www.well.com/~jax #  upon motionless wing; everywhere brooded stillness,
http://www.softwoehr.com #  serenity, and the peace of God." - Mark Twain




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



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


Mime
View raw message