RE: Using ant to parse text file

2007-02-22 Thread DHARNA, AJAY [AG/1000]
I have looked at the property task as well - but I will not be able to change the file format. I used the following target to get "Test2" ${text} Is there anyway to get back the line number where this is found - If I can get back the l

Using ant to parse text file

2007-02-21 Thread DHARNA, AJAY [AG/1000]
Hi all I am using Ant 1.6.5 - I would like to parse a text file that would contain the following information: [Sample.txt] Test1 Group=red Test2 Group=blue Test3 Group=green Example:- If I was to provide the value "Test2", I would like the Ant to search for "Test2" in the file, and re

RE: Parallel Task

2006-08-31 Thread DHARNA, AJAY [AG/1000]
-Original Message- From: DHARNA, AJAY [AG/1000] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 10:22 AM To: 'Ant Users List' Subject: Parallel Task Hi all, I have setup my parallel task as below: I wanted the parallel task to timeout if it does

Parallel Task

2006-08-31 Thread DHARNA, AJAY [AG/1000]
Hi all, I have setup my parallel task as below: I wanted the parallel task to timeout if it does not get a response in 18 milliseconds - however, I don't want it to fail the build - is there anyway of getting it to timeout but not fail - or - is there any other task t

How to detect when Tomcat has run out of memory

2006-08-29 Thread DHARNA, AJAY [AG/1000]
Does anyone know how I can use ant to detect when Tomcat is out of Memory? Thank you Ajay - This e-mail message may contain privileged and/or confidential information, and is intended to be

RE: Waitfor task

2006-08-29 Thread DHARNA, AJAY [AG/1000]
I forgot to mention, when I hit the URL on the web browser it seems to hang and doesn't return - this I why I was hoping the timeout would work in the waitfor task. -Original Message- From: DHARNA, AJAY [AG/1000] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 11:04 AM To:

Waitfor task

2006-08-29 Thread DHARNA, AJAY [AG/1000]
I am using the waitfor task as defined below: - the deafult wait time is 3 minute - this however doesn't seem to be working - the task just keeps on waiting. Am I missing something? Ajay. -

Patternset issue

2006-08-04 Thread DHARNA, AJAY [AG/1000]
I have defined 2 patternset When I am running Junit - I am using patternset="One" and then patternset="Shared" But it is still picking up files from the package2 folder - is there something wrong that I am doing - I have tried switching them around where I use patternset="S

Using Ant to define user specific jvmargs

2006-02-24 Thread DHARNA, AJAY [AG/1000]
Hi, I have a master build file that imports in a projects build files and runs the junit task - there are some default jvmargs that are being used but I also wanted to allow the individual projects to set there own jvmargs in their build file that I can then pull in and attach to the junit task in

using the default Logger/Listener in Ant

2006-01-09 Thread DHARNA, AJAY [AG/1000]
I am using the following options in Ant -listener org.apache.tools.ant.XmlLogger -DXmlLogger.file log.xml However, I get the following error message; ant logfile C:Development\Project\Source\Build\log.xml does not exist. Do I need to create a log.xml file?? Has anyone seen this issue and know h

delete task in Ant

2006-01-06 Thread DHARNA, AJAY [AG/1000]
I have a file(s) that get created in the build directory that I want to delete, so I used the delete task The files that get created are: .#Test.log.1.23 .#Test.log.1.24 Why does the ant task not recognize these files? Is there something wrong with the pattern tha

reduce Ant output

2005-11-29 Thread DHARNA, AJAY [AG/1000]
When I was using Ant 1.5.4 there was not all that much information being displayed, it only ran the target that I asked it to from within my Java IDE. However, I have recently updated my Java IDE and it now comes with Ant 1.6.5 and when I run a single target, it also displays additional information

importing multiple files

2005-09-30 Thread DHARNA, AJAY [AG/1000]
I have a main build that imports buildX and buildY. There is a fileset Task in buildX that has the same id name as the one in buildY - how can I get the one in buildX to override the one in buildY and can I even override fileset Tasks Thank you for your help Ajay Dharna -

Using ant for unknown number for jvm args

2005-09-14 Thread DHARNA, AJAY [AG/1000]
I have a build file that is imported by my mainBuild file. The mainBuild file has a target with a junit task - however the jvm arguments for this junit task are in the build file that is being imported and I don't know how many there could be. If there is some way, that I can create a property set