Re: How to write for task (i.e. check several headers files by class files or java files)?

2013-05-06 Thread Lev Serebryakov
Hello, Ant. You wrote 4 мая 2013 г., 12:08:41: LS> (2) LS> Then I tried to construct list of headers on-the-fly with LS> inside . And failed completely, as I could use LS>to convert from path to dotted-delimetered name of LS> file, but after that I could not convert dots to undersco

How to write for task (i.e. check several headers files by class files or java files)?

2013-05-04 Thread Lev Serebryakov
Hello, User. I want to check do I need to run task or not to re-generate header files for classes, which contains native methods. I want to use pure Ant 1.8.x, cross-platform. What I have as input: (1) Property with path to Java source tree, "path.src" (2) Property with

Re: AntUnit - Using assertResourceExists to check URL

2012-06-08 Thread Stefan Bodewig
On 2012-06-08, Pascal Schumacher wrote: > I opened a bugzilla issue: > https://issues.apache.org/bugzilla/show_bug.cgi?id=53383 Great, thanks Stefan - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additiona

Re: AntUnit - Using assertResourceExists to check URL

2012-06-08 Thread Pascal Schumacher
Hello Stefan, thanks for the quick response. :-) I opened a bugzilla issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=53383 Pascal -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ---

Re: AntUnit - Using assertResourceExists to check URL

2012-06-07 Thread Stefan Bodewig
On 2012-06-07, Pascal Schumacher wrote: > Hello everybody, > according to the AntUnit 1.2 documentation > "assertResourceExists > Asserts that a given resource exists. This is a generalization of > assertFileExists and allows to test for arbitrary resources." > it

AntUnit - Using assertResourceExists to check URL

2012-06-07 Thread Pascal Schumacher
Hello everybody, according to the AntUnit 1.2 documentation "assertResourceExists Asserts that a given resource exists. This is a generalization of assertFileExists and allows to test for arbitrary resources." it should be possible to check if a URL exists. But I can't figure

Check JBoss 7 EAR is deployed

2012-04-05 Thread Sebastian Hegewald
Hi, i'm starting a jboss 7.1.1 with an exec task: this works for me. Now i want to check if the EAR inside the deployment folder is fully deployed. I tryed with "waitFor " but i can't run antoher "Exec" inside the waitFor to c

Java task does not check assertions

2011-12-27 Thread Innerebner Markus
Hi, I am trying to enable assertions in my target that invokes the java task. The class AssertionTest works perfectly when compiling it from shell with javac (=source 1.6) and than running it with the command java -ea:AssertionTest AssertionTest but with Ant it looks like assertions are alway

AW: How can I check if file exists in gz compress file?

2011-05-09 Thread Knuplesch, Juergen
You could alternatively try to untar just the file you want to check. This might result in a build failure, that you can catch with antcontrib -Ursprüngliche Nachricht- Von: Ben Tu [mailto:ben...@gmail.com] Gesendet: Freitag, 6. Mai 2011 18:09 An: user@ant.apache.org Betreff: How can I

Re: How can I check if file exists in gz compress file?

2011-05-08 Thread Alexandre Priou
> > >> > >> > >> > >> > >> Nicolas > >> > >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : > >> > >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > >> >> Hi, > >> >&g

Re: How can I check if file exists in gz compress file?

2011-05-08 Thread Matt Benson
condition will do the proper job: >> >> >>     >>       >>         >>       >>     >> >> >> Nicolas >> >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : >> >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: >

How can I check if file exists in gz compress file?

2011-05-07 Thread Ben Tu
Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in myfile.tar.gz without extracting myfile.tar.gz. is

Re: How can I check if file exists in gz compress file?

2011-05-07 Thread Ben Tu
Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > >> Hi, > >> > >> Is there a task in Ant that I can check if the file exists in > myfile.tar.gz > >> file without extracting it? > >> > >> > > > > With the tar being gzipped, I can't thin

Re: How can I check if file exists in gz compress file?

2011-05-07 Thread Nicolas Lalevée
I think this kind of condition will do the proper job: Nicolas Le 6 mai 2011 à 19:14, Matt Benson a écrit : > On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: >> Hi, >> >> Is there a task in Ant that I can check if the file exists in

Re: How can I check if file exists in gz compress file?

2011-05-06 Thread Matt Benson
On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > Hi, > > Is there a task in Ant that I can check if the file exists in myfile.tar.gz > file without extracting it? > > With the tar being gzipped, I can't think of anything in core Ant that will just do this. If you want

How can I check if file exists in gz compress file?

2011-05-06 Thread Ben Tu
Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in myfile.tar.gz without extracting myfile.tar.gz. is

Re: To check server is down

2011-02-10 Thread Steve Loughran
22>output.file a fail message would be no output a found message would be the IP:3960 of the server There's a risk there that if /etc/services is up to date, the netstat won't show 22, it will show svn. I'd use the No SVN server I use this kind of check in , bloc

RE: To check server is down

2011-02-04 Thread Martin Gainty
s accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 4 Feb 2011 07:08:50 -0800 > From: ganesh.devaraj...@baml.com > To: user@ant.apache.org > Subject: To check server is down > > > Is there a ant task to check whether the server hosting the source control

To check server is down

2011-02-04 Thread ritchie
Is there a ant task to check whether the server hosting the source control is down? -- View this message in context: http://ant.1045680.n5.nabble.com/To-check-server-is-down-tp3371133p3371133.html Sent from the Ant - Users mailing list archive at Nabble.com

RE: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Moore, Kent
...@rzf.fin-nrw.de] Sent: Tuesday, July 27, 2010 9:11 AM To: user@ant.apache.org Subject: AW: How to check if available java version is higher equal than a required java version? Check for Classes which are new in that specific JDK. Jan >-Ursprüngliche Nachricht- >Vo

AW: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Jan.Materne
Check for Classes which are new in that specific JDK. Jan >-Ursprüngliche Nachricht- >Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] >Gesendet: Dienstag, 27. Juli 2010 14:35 >An: Ant Users >Betreff: How to check if available java version is higher >equ

How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Ben Stover
Assume I have a build.xml which contains some java tasks (javac, jar,...) I would like to make sure that the Java installation which is used to compile the source code is higher equal than e.g. JAVA SE 1.5.03. How can I specify this version requirement (and an appropriate error message) in a bu

RE: task to check for i18n tokens in resource bundle?

2010-05-10 Thread Martin Gainty
les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 10 May 2010 15:25:19 +0100 > Subject: task to check for i18n tokens in resource bundle? > From: insomniacpeng...@googlemail.com > To: use

task to check for i18n tokens in resource bundle?

2010-05-10 Thread Andy Stevens
Hi, Does anyone know of an easy way (using standard or custom Ant task(s), or

Re: AW: check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
improvement I did: Macro: "@{property} is missing. Example: @{example}" Then create a target e.g. check-properties

Re: AW: check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
jan.mate...@rzf.fin-nrw.de wrote: I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there have been any changes for loading property files (break the build if they're not found) should not. But using the specified property file doesnt have to exist - since a long time... and

AW: check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Jan.Materne
>I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there >have been any changes for loading property files (break the build if >they're not found) should not. But using the specified property file doesnt have to exist - since a long time... > and if ant can report on the propert

check property file exists and which properties are missing in Ant 1.8?

2010-02-11 Thread Dimitris Mouchritsas
Hi all, I'm giving Ant 1.8.0 a try on a new project. I'd like to ask if there have been any changes for loading property files (break the build if they're not found) and if ant can report on the properties missing. Are there any related ant-contrib tasks? Regards Dimitris

Consistency check failing on branch information

2009-11-12 Thread Carlton Brown
Can someone explain exactly the purpose of the consistency check that Ivy performs? The documentation says it compares checking between what is expected and what is actually found. But what is actually 'expected', and why? Currently I've got a situation where Ivy is fa

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Stefan Bodewig
On 2009-10-29, cvsusr wrote: > I need to check for existence of files with some extension say *.txt in a > folder and if present execute a target.. Use the condition task with a resourcecount condition to ste a property and make your target use that property.

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Matt Benson
rmine a fileset's emptiness. -Matt --- On Thu, 10/29/09, cvsusr wrote: > From: cvsusr > Subject: Alternative for taks to check a pattern of file existence > To: user@ant.apache.org > Date: Thursday, October 29, 2009, 6:00 AM > > Hi, > > I need to check for exis

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
: user@ant.apache.org > Subject: Re: Alternative for taks to check a pattern of file > existence > > /* > > > > > > > file list::: @{file} > > > > > */ > > using for - which requires antcontrib also - when all you want >

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 3:34 PM To: user@ant.apache.org Subject: Re: Alternative for taks to check a pattern of file existence /* file list::: @{file} */ using for - which requires antcontrib

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
the current >> folder >> >> >>   >>     >>   >> >> file list::: @{file} >> >> >> >> >> Now i need to check if the file exist then perform the target..  Do i >> need >> to use condition for this?? >> > > Well, no, since i

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
On Thu, Oct 29, 2009 at 13:00, cvsusr wrote: > > I tried this.. this is printing the *.txt file that exist in the current > folder > > >   >     >   > > file list::: @{file} > > > > > Now i need to check if the file exist then perform the ta

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
P.S. : you may also check for existence of specific files via fileset if that is enough for your purpose = and then f.e. = or .. or Regards, Gilbert -Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 12:00 PM To: user

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 12:00 PM To: user@ant.apache.org Subject: Alternative for taks to check a pattern of file existence /* Hi, I need to check for existence of files with some extension say *.txt in a folder

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
I tried this.. this is printing the *.txt file that exist in the current folder file list::: @{file} Now i need to check if the file exist then perform the target.. Do i need to use condition for this?? Thanks Sri Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi, Thanks for your reply.. I know to use Fileset.. but how to check with forloop.. if possible, Can you please give me an example? Im new to this concept and hence requesting your help.. Thanks Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: >> &g

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: > > Hi, > > I need to check for existence of files with some extension say *.txt in a > folder and if present execute a target.. > > I found only task which checks for the existence of single file > only when the name of the

Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi, I need to check for existence of files with some extension say *.txt in a folder and if present execute a target.. I found only task which checks for the existence of single file only when the name of the file known. I wanted to check whether *.txt is present or not.. if present execute a

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Sushim Saini
s be a good form to do this. >> >> Thank you very much. >> >> Best regards >> >> -Mensaje original- >> De: Sushim Saini [mailto:sushimsa...@gmail.com] Enviado el: martes, 04 de >> agosto de 2009 11:46 >> Para: Ant Us

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Michael George
List Asunto: Re: Check if exist a file and then run or not a target HI u can try like that Exec file.bat I think you want: if="fileExist", not if="checkForExist" --Mike - To

RE: Check if exist a file and then run or not a target

2009-08-04 Thread Redondo Gallardo, Raul Maria
Thank you very much, I'll try it now, this seems be a good form to do this. Thank you very much. Best regards -Mensaje original- De: Sushim Saini [mailto:sushimsa...@gmail.com] Enviado el: martes, 04 de agosto de 2009 11:46 Para: Ant Users List Asunto: Re: Check if exist a fil

RE: Check if exist a file and then run or not a target

2009-08-04 Thread Felix Dorner
Maybe you want, although it's not really the same...? ... The other way would be to use ant-contrib's if. Which I think is ugly. I'm trying to do with ANT anything like: If exist a file (file.txt) Exec file.bat End if

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Sushim Saini
HI u can try like that Exec file.bat hope will helpfull for u Sushim On Tue, Aug 4, 2009 at 3:07 PM, Redondo Gallardo, Raul Maria < rmredo...@eservicios.indra.es> wrote: > Hello, > > > > I’m trying to do with ANT anything like: > > > > If exist a file (fi

Check if exist a file and then run or not a target

2009-08-04 Thread Redondo Gallardo, Raul Maria
Hello, I'm trying to do with ANT anything like: If exist a file (file.txt) Exec file.bat End if But I don't get it. Is it possible to do this with ANT? Thank you very much. Best regards, Raúl María Redondo Gallardo Dpto. tr

check if a target exists

2009-05-25 Thread ranicki
Hi, is there a possibility in ant to check if a specific target exists? I want to call a target only if it exists but how can i check that? Thanks in advance -- View this message in context: http://www.nabble.com/check-if-a-target-exists-tp23702502p23702502.html Sent from the Ant - Users

Using ant to check out only a single file from CVS

2009-02-04 Thread dave.alvarado
Hi, I'm using Ant 1.6 on Solaris 9. Right now I have a shell script in which I can check out a package from CVS: ant -Duser=$username -Dbaseline=$baseline -Dpackage=$CVS_PACKAGE_NAME cvsCheckout but I was wondering how I can check out only a single file from CVS and then place it

ant task for 508 compilance check

2008-11-05 Thread miro
We are building application for govt for whcih we have to follow 508 compilance and would like to check our pages for 508 compilancethrough ant task ,Is there anything availbale in ant for this check ? -- View this message in context: http://www.nabble.com/ant-task-for-508-compilance

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

2008-09-29 Thread Steve Loughran
ed on the task, and do issue select statements to check the database health. The only variation is to support drivers like mysql and any other with a method called ping() on them, that lets us ping the database without doing any work. I don't think it is that much faster than a SELECT though.

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

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

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

2008-09-26 Thread Jan.Materne
gt;Von: Kothari, Shivani [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 26. September 2008 09:33 >An: Ant Users List >Betreff: RE: How to check whether database exists and then proceed ? > >Hi thanks rebhan >I did the same only, why I raised this question in email is to find out &

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

2008-09-26 Thread Kothari, Shivani
List' Subject: RE: How to check whether database exists and then proceed ? -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 th

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

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

2008-09-26 Thread Kothari, Shivani
PM To: user@ant.apache.org Subject: AW: How to check whether database exists and then proceed ? 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

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

2008-09-26 Thread Jan.Materne
gt;Von: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 26. September 2008 07:41 >An: Ant Users List >Betreff: RE: How to check whether database exists and then proceed ? > >My way doing it would be : > > - To check if an executable (under MSSQL scop

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

2008-09-25 Thread Sharma, Jaikumar
My way doing it would be : - To check if an executable (under MSSQL scope) supports to check for a particular database, and return the value which can help further, since ant Support running external programs (EXE) from within Ant.. - probably any third party ant task which could

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

2008-09-25 Thread Kothari, Shivani
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. Thanks -Original Message- From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] Sent: Friday, September 26

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

2008-09-25 Thread Sharma, Jaikumar
understand, what could be probable solution to your question..etc.. -Original Message- From: Kothari, Shivani [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 10:33 AM To: user@ant.apache.org Subject: How to check whether database exists and then proceed ? Hi, How to check whether

How to check whether database exists and then proceed ?

2008-09-25 Thread Kothari, Shivani
Hi, How to check whether database exists using ANT and then proceed ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to Check if Directory exists?

2008-09-09 Thread Rebhan, Gilbert
-Original Message- From: Brill, C [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 2:32 PM To: user@ant.apache.org Subject: How to Check if Directory exists? /* Hi, I've got a little problem. Here is the existing directory structure: drwxrwxr-x 5 symosyad e

Re: How to Check if Directory exists?

2008-09-09 Thread Scot P. Floess
-0837 -rw-r- 1 symosyad edasql3760 Sep 9 13:14 DWH-PQ-HQ-0837_Lieferung.tar.gz drwxr-xr-x 3 symosyad edasql 96 Sep 9 13:12 archiv In one of the first steps in my build.xml I want to check if the file 'DWH-PQ-HQ-0837_Lieferung.tar.gz' and the directory 'D

RE: How to Check if Directory exists?

2008-09-09 Thread Peters, John
:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 8:32 AM To: user@ant.apache.org Subject: How to Check if Directory exists? Hi, I've got a little problem. Here is the existing directory structure: drwxrwxr-x 5 symosyad edasql 96 Sep 9 13:14 DWH-PQ-HQ-0837 -rw-r- 1 sym

How to Check if Directory exists?

2008-09-09 Thread Brill, C
13:12 archiv In one of the first steps in my build.xml I want to check if the file 'DWH-PQ-HQ-0837_Lieferung.tar.gz' and the directory 'DWH-PQ-HQ-0837' exist. If the exist I want to move them into 'archiv'. With the task I can only check if files exists, isn't

Re: Getting "Exception invoking method check"

2008-08-07 Thread fphan
Thanks for all your responses. I've also found that bouncing Tomcat can solve this weird problem. -- View this message in context: http://www.nabble.com/Getting-%22Exception-invoking-method-check%22-tp18764317p18877802.html Sent from the Ant - Users mailing list archive at Nabbl

Re: Getting "Exception invoking method check"

2008-08-01 Thread Kevin Jackson
Hi, > Looks like something happening in tomcat; its their stack trace. > > Personally, I've found the tomcat tasks fairly tricky to keep > alive. I prefer to use deploy-by-copy, and just the WAR file straight > into the tomcat/webapps directory > > * it avoids you having to turn on the public man

Re: Getting "Exception invoking method check"

2008-08-01 Thread Steve Loughran
tered exception javax.management.RuntimeOperationsException: Exception invoking method check at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:261) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:200) at org.apache.tools.ant.UnknownElement.execute(UnknownE

Getting "Exception invoking method check"

2008-07-31 Thread fphan
n invoking method check at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:261) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:200) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

Re: how to check that a property exist

2008-06-12 Thread Gilbert Rebhan
[EMAIL PROTECTED] schrieb: but I don't know how to use it. My ant version is: Apache Ant version 1.6.5 compiled on June 2 2005 and I read that script task depends on external libraries not included in the Ant distribution. it's only the BeanScriptingFramework = bsf.jar and the language specifi

RE: how to check that a property exist

2008-06-12 Thread Patrizio.Ferlito
Thanks again !!! I'm looking at your last hint:

RE: how to check that a property exist

2008-06-12 Thread Rebhan, Gilbert
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 1:42 PM To: user@ant.apache.org Subject: RE: how to check that a property exist /* Hi Gilbert, issue ii) solved using macrodef

RE: how to check that a property exist

2008-06-12 Thread Patrizio.Ferlito
-Original Message- From: Ferlito Patrizio (B-Source - Lugano) Sent: giovedì, 12. giugno 2008 13:11 To: 'Ant Users List' Subject: RE: how to check that a property exist Hi Gilbert, thanks a lot for your hint but I would like to find a way without using antcontrib... After some tries

RE: how to check that a property exist

2008-06-12 Thread Patrizio.Ferlito
lerValue} where that works more or less ... I see 1) with a not defined .pollerManagedServer property: 1.a) OK: pollerEventIsSet-else is called and 'locally' the value is correct check-pollerEventIsSet: pollerEventIsSet-if: pollerEventIsSet-else: [echo] pollerEventIsNotSe

RE: how to check that a property exist

2008-06-11 Thread Rebhan, Gilbert
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 12:22 PM To: user@ant.apache.org Subject: how to check that a property exist /* I've a properties file like that: ... defaultPollerManagedServer=A TestEvent.pollerManagedSer

how to check that a property exist

2008-06-11 Thread Patrizio.Ferlito
Hi all, I'm trying to find out a solution for the below issue. I've a properties file like that: ... defaultPollerManagedServer=A TestEvent.pollerManagedServer=B DummyEvent.pollerManagedServer=C ... I run my build.xml providing a parameter: ant -DIPEvent=TestEvent And I would like to set the

Re: How do you check jar and zip are not corrupted

2008-02-20 Thread Marc Farrow
also depending on environment it might be better to FTP instead of COPY. On Feb 20, 2008 7:24 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Ramu Sethu wrote: > > Hi all > > > > I copy files from a m/c thro copy task. These jars and zip files will be > > used in my class path for the next build

Re: How do you check jar and zip are not corrupted

2008-02-20 Thread Steve Loughran
Ramu Sethu wrote: Hi all I copy files from a m/c thro copy task. These jars and zip files will be used in my class path for the next build (which run junit tests). All these process are scheduled. But sometimes file copied gets corrupted or not copied properly. All my tests in my next build fail

How do you check jar and zip are not corrupted

2008-02-19 Thread Ramu Sethu
Hi all I copy files from a m/c thro copy task. These jars and zip files will be used in my class path for the next build (which run junit tests). All these process are scheduled. But sometimes file copied gets corrupted or not copied properly. All my tests in my next build fails. What I wanted is

Re: Check process on remote host - Can Ant do that ?

2008-02-19 Thread Steve Loughran
David Brown wrote: Hello Steve, this is the wrong ML so I will keep it short. I have complete steps 1 and 2 below. There is not if any traffic on the smartfrog-users ML. I cannot the the smarfrog or sfDaemon to start to be able to complete step #3. What is the best venue to get some advice? Pl

Re: Check process on remote host - Can Ant do that ?

2008-02-18 Thread David Brown
Hello Steve, this is the wrong ML so I will keep it short. I have complete steps 1 and 2 below. There is not if any traffic on the smartfrog-users ML. I cannot the the smarfrog or sfDaemon to start to be able to complete step #3. What is the best venue to get some advice? Please advise, David.

Re: Check process on remote host - Can Ant do that ?

2008-02-15 Thread Steve Loughran
David Brown wrote: Hello Steve, I am subscribed to various MLs such as Ant and Tomcat because I seem to find something that grabs my interest almost daily. And, the smartfrog link below is no exception. I went directly to smartfrog and I have been reading avidly for several hours. And, I agre

Conditional check with telnet task

2008-02-15 Thread Ramu Sethu
Hi All I need to telnet a machine. But machine displays string in two ways. Either i will be getting '?' or "#" in the console. Is there any way to do conditional checks inside telnet task with ant tasks. Or i should go for custom task? -- Thank you Ramu S

Re: Check process on remote host - Can Ant do that ?

2008-02-14 Thread David Brown
t; > > > > What you're effectively trying to do here is monitor remote processes; > you've jump from build time to run time/management problems. > > More subtly, its not enough to check that the process is present, you > need to be sure it is *alive*. If you can

Re: Check process on remote host - Can Ant do that ?

2008-02-14 Thread Steve Loughran
Z W wrote: Steve L Thanks for your response. Sounds like another huge learning curve for me. Is there any other way in Ant besides having to learn sf ? I'm unsure if I have the time bandwidth to experiment with. 1. If you can use conditions to check for the remote state, then you ca

Re: Check process on remote host - Can Ant do that ?

2008-02-13 Thread Z W
Steve L Thanks for your response. Sounds like another huge learning curve for me. Is there any other way in Ant besides having to learn sf ? I'm unsure if I have the time bandwidth to experiment with. Thanks

Re: Check process on remote host - Can Ant do that ?

2008-02-13 Thread Steve Loughran
y, its not enough to check that the process is present, you need to be sure it is *alive*. If you can monitor the external side effect of a process (http get, telnet to a port, make a JDBC call) then you can see if a system is actually alive as far as an outside caller is concerned. This is the b

Re: Check process on remote host - Can Ant do that ?

2008-02-13 Thread Z W
ier > > Original Message > Subject: Re: Check process on remote host - Can Ant do that ? > From: Z W <[EMAIL PROTECTED]> > To: Ant Users List > Date: 06/02/2008 15:10 > > Thanks for responding. > > But how do I make a conditional infinite l

Re: Check process on remote host - Can Ant do that ?

2008-02-12 Thread Olivier Gies
Maybe you can implement a condition to be used with Ant's core task... Olivier Original Message Subject: Re: Check process on remote host - Can Ant do that ? From: Z W <[EMAIL PROTECTED]> To: Ant Users List Date: 06/02/2008 15:10 Thanks for responding. But how

Re: Check process on remote host - Can Ant do that ?

2008-02-05 Thread Z W
nerror}" timeout="${sshexec.timeout}" command="${ > sshexec.command}" outputproperty="sshexec.outputproperty" /> > ...Use a condition to check that ${sshexec.outputproperty} !equals the > empty > string... > > ... > > HTH > -- > Charbel &

Re: Check process on remote host - Can Ant do that ?

2008-02-05 Thread Charbel BITAR
As you said use the task. Here's an example : ... ... ...Use a condition to check that ${sshexec.outputproperty} !equals the empty string... ... HTH -- Charbel On Feb 5, 2008 11:24 PM, Z W <[EMAIL PROTECTED]> wrote: > Hi > > I have an ant script that needs to

Check process on remote host - Can Ant do that ?

2008-02-05 Thread Z W
Hi I have an ant script that needs to check the status of a process running on a remote machine and if the process has stopped running, I like the Ant script the ability to know that and move on to the next step in Ant script. Could someone here give a simple example on how to implement that ? I

RE: using to check for tool availability

2008-01-17 Thread Buck, Robert
The mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 10:49 AM To: Ant Users List Subject: Re: using to check for tool availability On Jan 17, 2008 9:20 AM, Buck, Robert <[EMAIL PROTECTED]> wrote: > Does anyone have any better suggestions for how to check for tool > exis

Re: using to check for tool availability

2008-01-17 Thread Dominique Devienne
On Jan 17, 2008 9:20 AM, Buck, Robert <[EMAIL PROTECTED]> wrote: > Does anyone have any better suggestions for how to check for tool > existence in Ant? But you need to know the exact file name (dot or dot.exe), and env.PATH is not always portable because of case on Windows, whe

using to check for tool availability

2008-01-17 Thread Buck, Robert
Hello, I have a problem I am trying to solve that I need some help with. What I'd like to do is check for the availability of an executable tool on the system path. If the tool is available, then allow extra (secret sauce) features to be enabled. Otherwise the extra (non-essential)

Re: Condition check Question

2008-01-16 Thread Steve Loughran
David Weintraub wrote: Isn't there a "failsonerror" parameter to make the build fail if the ssh command called fails? Would that do what you want? Unlike "exec" task, the sshexec task doesn't have a "resultsproperty" that can contain the exit code if the

Re: Condition check Question

2008-01-15 Thread David Weintraub
Isn't there a "failsonerror" parameter to make the build fail if the ssh command called fails? Would that do what you want? Unlike "exec" task, the sshexec task doesn't have a "resultsproperty" that can contain the exit code if the task fails. So

Condition check Question

2008-01-14 Thread Z W
Hi Can folks here give examples on how to perform a condition check for this ? I'm executing a sshexec and how do I use to work like if-then-else, following to check if this is executed succesfully Thanks in advance

Re: Easier Way To Check and Install jars

2008-01-08 Thread David Brown
I have a suspicion you can do this without the Antcall. If I get a chance I will look at some builds I have. My current gig does not allow internet access at work. I'll take a look back in 12 hours. Francisco Tolmasky wrote .. > I wrote up a "short" install target in my ant file to make sure I h

  1   2   3   >