RE: How to check whether database exists and then proceed ?

2008-09-26 Thread Kothari, Shivani
Hi stevel, I did the same with using sql command in try catch block. I was wandering if there is any better approach available. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 4:24 PM To: Ant Users List Subject: Re: How to check whether

[ANN] Apache Ivy 2.0.0-rc1 released

2008-09-26 Thread Xavier Hanin
Sep 26, 2008 - The Apache Ivy project is pleased to announce its 2.0.0 rc 1 version, the first release candidate for 2.0.0 final release. Ivy is a tool for managing (recording, tracking, resolving and reporting) project dependencies, characterized by flexibility, configurability, and tight integra

Re: How to check whether database exists and then proceed ?

2008-09-26 Thread Steve Loughran
Kothari, Shivani wrote: Hi, Thanks for pointing it out. I want to check using ant that whether a particular database exits on MSSQL server? And if it exists I want to proceed further in the deployment script. Use the command to issue the relevant SELECT statement against the database, setting

[ANN] Apache AntUnit 1.1 Released

2008-09-26 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today Apache AntUnit 1.1, an Ant-Library that supports testing of Ant tasks and build files has been released. AntUnit 1.1 fixes a few bugs of AntUnit 1.0 and adds a few new assertions. The most visible change is that listeners can now receive the ou

AW: Conditionally execute copy task

2008-09-26 Thread Jan.Materne
Use conditional patterns. Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 26. September 2008 11:21 >An: 'Ant Users List' >Betreff: RE: Conditionally execute copy task > > > >-Original Messag

Nested Element not retieved

2008-09-26 Thread j-m-t
Hi I'm trying to use ant to perform some operations outside a build process and I'm having a problem dealing with nested elements. First I made work the code found in the "writing tasks tutorial" at http://ant.apache.org/manual/tutorial-writing-tasks.html#NestedElements. This part is fine. Now

RE: Conditionally execute copy task

2008-09-26 Thread Rebhan, Gilbert
-Original Message- From: "Spilker, Jörg" [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 11:03 AM To: 'user@ant.apache.org' Subject: Conditionally execute copy task /* Hello, i want to copy some files only if some property is set to true. Is this possible? There is the condit

Conditionally execute copy task

2008-09-26 Thread Spilker, Jörg
Hello, i want to copy some files only if some property is set to true. Is this possible? There is the condition tasks, but it only sets a property based on prerequisites. I didn´t found anything like an tasks or similar. Greetings, Jörg

Re: Include XML file

2008-09-26 Thread Ognjen Blagojevic
Nan Null wrote: I think you have a communication problem. Yes, we did have, thanks for jumping in. :) Once you have the build.xml file, you can call (System.execute) Ant, passing in the path of the build file and the jsp. Or it can be called directly from Java, using class org.apache.tool

AW: How to check whether database exists and then proceed ?

2008-09-26 Thread Jan.Materne
You could write a Condition. // Try your SQL, maybe using task which implemented // in org.apache.tools.ant.taskdefs.SQLExec self.setValue( sqlWasOK ); Hello Database Sorry, no Database Jan >-Ursprüngliche Nachricht- >Von: Kot

RE: How to check whether database exists and then proceed ?

2008-09-26 Thread Kothari, Shivani
Hi thanks rebhan I did the same only, why I raised this question in email is to find out ..if there is any better approach then doing this Thanks skothari -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 1:00 PM To: 'Ant Users List'

RE: How to check whether database exists and then proceed ?

2008-09-26 Thread Rebhan, Gilbert
-Original Message- From: Kothari, Shivani [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 9:19 AM To: Ant Users List; [EMAIL PROTECTED] Subject: RE: How to check whether database exists and then proceed ? /* Hi, Prob is I want to proceed further in the build scriptin both

RE: How to check whether database exists and then proceed ?

2008-09-26 Thread Kothari, Shivani
Hi, Prob is I want to proceed further in the build scriptin both the cases If db doesnot exists then prompt the user and continue the script and if does continue the script -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 12:45 P

AW: How to check whether database exists and then proceed ?

2008-09-26 Thread Jan.Materne
Just an idea: use and execute an sql command which works only if your database is correctly set up. If that sql fails, the task will throw a BuildException which causes the build to fail. Otherwise, just ignore the result of the sql and proceed. Jan >-Ursprüngliche Nachricht- >Von: