Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40695 invoked from network); 18 Feb 2004 16:09:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Feb 2004 16:09:47 -0000 Received: (qmail 22302 invoked by uid 500); 18 Feb 2004 16:09:32 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22263 invoked by uid 500); 18 Feb 2004 16:09:32 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 22250 invoked from network); 18 Feb 2004 16:09:31 -0000 Received: from unknown (HELO PGAS-MAIL.PGAS.PGAS.COM) (162.39.153.209) by daedalus.apache.org with SMTP; 18 Feb 2004 16:09:31 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: SQL parameter X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 18 Feb 2004 10:05:03 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SQL parameter Thread-Index: AcP1otMtkGrnPZSTQY6Vs4MeEPmY4AAkppoAAADayeA= From: "Mario Manfre" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N looks like it didn't like the ..change to and = it seems to be working. -----Original Message----- From: Mario Manfre=20 Sent: Wednesday, 02 18, 2004 09:54 To: Ant Users List Subject: RE: SQL parameter ok..closer but not that I got my "=20 If I do I get the following 'osql' '-E' '-SSQL-SERVER\MYDBs' '-a8192' '-q"drop database NightBuild_Test";' The ' characters around the executable and arguments are not part of the command. [exec] usage: osql [-U login id] [-P passwor [exec] [-S server] [-H hostname] [-E trusted [exec] [-d use database name] [-l login timeout] [-t query t [exec] [-h headers] [-s colseparator] [-w columnw [exec] [-a packetsize] [-e echo input] [-I Enable [exec] [-L list servers] [-c cmdend] [-D ODBC DS [exec] [-q "cmdline query"] [-Q "cmdline query" and exit] [exec] [-n remove numbering] [-m errorlevel] [exec] [-r msgs to stderr] [-V severitylevel] [exec] [-i inputfile] [-o outputfile] [exec] [-p print statistics] [-b On error batch abort] [exec] [-O use Old ISQL behavior disables the following] [exec] batch processing [exec] Auto console width scaling [exec] Wide messages [exec] default errorlevel is -1 vs 1 [exec] [-? show syntax summary] BUILD FAILED C:\PGAS\Development\Build\build.xml:615: exec returned: 1 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.j at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237 at org.apache.tools.ant.Project.executeTargets(Project.java:109 at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) also, it looks like the HI, >I'm trying to create or drop a database based on a property file. > >the basics are > > > > >and then either do > > dir=3D"C:\Build\" > failonerror=3D"true" =20 > vmlauncher=3D"false" > > > =20 > > > > > > classpath=3D"${jdbc}:${jdbc-add1}:${jdbc-add2}" > url=3D"${jdbc-connect}" > userid=3D"${db.user}" > password=3D"${db.user.password}" > print=3D"false" > > > > > >Or is there some other way which I am missing? > >Thanks, >Mario > > =20 > This sounds good. Pay attention that you might need to escape as "=20 the double quotes in the argument -q"drop database ${db.name}", so write -q"drop database ${db.name}" Come back to the list if something does not work out properly. Antoine --------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org