Re: Using ant to parse text file

2007-02-21 Thread Kevin Jackson
[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 return the value "blue". If I provide the value - "Test3", it should return the value "green" Please let me know if there

AW: Using ant to parse text file

2007-02-21 Thread Jan.Materne
I dont know any way (without writing a custom task). Jan >-Ursprüngliche Nachricht- >Von: DHARNA, AJAY [AG/1000] [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 22. Februar 2007 07:04 >An: Ant Users List >Betreff: Using ant to parse text file > >Hi all > >I am using Ant 1.6.5 - I woul

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

access and change values in a propertyset

2007-02-21 Thread kkmca
i need to access all change the values in a propertyset - no idea how to manipulate a propertyset outside of echo properties. I need to get the values - perform math on the values and expand those proprties to a configuration file- I am deploying configuration files to multiple instances and need

xmlvalidate errors

2007-02-21 Thread Kevin Cline
I would like to run xmlvalidate over a number of fails, and have it validate all files even if some validations fail, but terminate the build when some validations do fail. Setting failonerror=false solves half the problem. Any clues about solving the other half?

Re: How to compile jsp files with ANT

2007-02-21 Thread Jing Xue
I don't see how the portability issue become a serious one. Really, what are the chances that we would upgrade to a new container version - let alone migrate to a different product - in _production_ without first thoroughly testing the application, which implies rebuilding everything against the n

Re: visibility of the variable/parameter

2007-02-21 Thread Ninju Bohra
Try creating s out of your helper targets. When invoking s the ANT scope is retained and so all properties defined within s are visible to the rest of the ANT invocation. I would try this before moving to because does allow the 'propegation' of property definition across invocation but it

RE: visibility of the variable/parameter

2007-02-21 Thread Burgess, Benjamin
I believe ant contrib. has an "antcallback" task (or something like that) that might accomplish what you are looking for. Ben -Original Message- From: Dharmesh Vyas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 2:44 PM To: Ant Users List Subject: Re: visibility of the vari

Re: Open database connection from Ant

2007-02-21 Thread lightbulb432
Sounds interesting, but how can I do this with Ant? Beginner, remember...? :) Steve Loughran wrote: > > lightbulb432 wrote: >> I should have changed my question from "open a connection to a database" >> to >> "start the database server"...that seems more like it. >> >> >> >> lightbulb432 w

Re: visibility of the variable/parameter

2007-02-21 Thread Dharmesh Vyas
Thanks for your reply Ben and Antoine. Ben: In my case what I am planning to implement, I won't be able to use 'depends'. So, prob. I will have to use a work around of writing down the values to some file. But, still I am wondering if I could find out some other option. Thanks, - Dharmesh. On

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
- Original Message From: Steve Loughran <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, February 21, 2007 12:51:17 PM Subject: Re: How to compile jsp files with ANT >> And, also if I were to run HttpUnit on a production environment, it would >> have to be done during off-peak

Re: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
Rashmi Rubdi wrote: I normally pre-compile the JSPs in the development environment, package *only the class files* [Excluding the JSPs and the JSP Java files generated by Jasper] into a WAR and then upload the WAR to production. As James originally mentioned, I think if I ran HttpUnit directlly

Re: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
Rashmi Rubdi wrote: With an httpunit run straight after deployment, you can hit every single JSP page in turn -on the production machine-. This gets the preload hit out the way, and helps test the live system is working. Ah ok, now I get it. Sorry my brain is a little slow. I guess this proce

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
I normally pre-compile the JSPs in the development environment, package *only the class files* [Excluding the JSPs and the JSP Java files generated by Jasper] into a WAR and then upload the WAR to production. As James originally mentioned, I think if I ran HttpUnit directlly once on production ,

Re: visibility of the variable/parameter

2007-02-21 Thread Antoine Levy-Lambert
Hello Dharmesh, properties set in an antcall are not visible when the antcall returns. antcall (and ant) generate new tables of properties and reference ids. Regards, Antoine Original-Nachricht Datum: Wed, 21 Feb 2007 16:57:41 +0100 Von: "Dharmesh Vyas" <[EMAIL PROTECTED]> An

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
> With an httpunit run straight after deployment, you can hit every single > JSP page in turn -on the production machine-. This gets the preload hit > out the way, and helps test the live system is working. Ah ok, now I get it. Sorry my brain is a little slow. I guess this process would also ge

RE: visibility of the variable/parameter

2007-02-21 Thread Burgess, Benjamin
Antcall is a task that is used to call a sub project. In other words, what is called using Antcall is a sub process in its own scope and properties set in that scope do not come back to the calling scope. You should see a massive increase in memory as well with ancall as it is creating a whole ne

visibility of the variable/parameter

2007-02-21 Thread Dharmesh Vyas
Hello Group, Shown below is the small illustration of something which I am trying to implement. I am not sure, where/what I am missing. value of view is ${view} ---> Which shows as true value of view is ${view} -> value of view is not set

Re: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
Rashmi Rubdi wrote: I've used JUnit before, I do want to learn HttpUnit (among so many other things that I need to learn :-) But thanks for providing the details, they're helpful. Ant in Action has a special section on HttpUnit, before I get into Apache Cactus, which is the serious server-sid

fileset and filename under copy task

2007-02-21 Thread KDuffy
>From my reseach/reading, in this example a file to be included would have to meet the three filename conditions. The filename conditions are "AND"ed. So I think I understand why the above does not work. The following copies the file

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
I've used JUnit before, I do want to learn HttpUnit (among so many other things that I need to learn :-) But thanks for providing the details, they're helpful. I've worked on a few eXtreme Programming projects, and recognize the importance of test-first-design. The main reason for using Jasper

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
- Original Message From: James Abley <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, February 21, 2007 4:19:15 AM Subject: Re: How to compile jsp files with ANT >I would suggest you take a closer look at my original suggestion. If you >use the Jasper task, then I would think th

Re: AW: AW: How to compile jsp files with ANT

2007-02-21 Thread James Abley
Steve Loughran wrote: [EMAIL PROTECTED] wrote: 5. You get to verify the output matches what you want. Except Httpunit feeds its stuff through tidy; its very HTML-centric. Does anyone know how to use it to test proper XML documents, with namespaces and the like? XmlUnit ? http://xmlunit.sf.n

Re: How to compile jsp files with ANT

2007-02-21 Thread Brian Agnew
Watij (http://watij.com) will work against IE and is Java-based. I don't think it does Firefox (yet) but it works well against IE. You'll have to integrate this into your unit tests post-deployment. Brian Kevin Jackson wrote: Just to throw my hat in the ring... If you don't like HttpUnit (fo

Re: AW: AW: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
[EMAIL PROTECTED] wrote: 5. You get to verify the output matches what you want. Except Httpunit feeds its stuff through tidy; its very HTML-centric. Does anyone know how to use it to test proper XML documents, with namespaces and the like? XmlUnit ? http://xmlunit.sf.net/ http://stefan.samaf

AW: AW: How to compile jsp files with ANT

2007-02-21 Thread Jan.Materne
>5. You get to verify the output matches what you want. Except Httpunit >feeds its stuff through tidy; its very HTML-centric. Does anyone know >how to use it to test proper XML documents, with namespaces >and the like? XmlUnit ? http://xmlunit.sf.net/ http://stefan.samaflost.de/blog//en/oss/X

Re: How to compile jsp files with ANT

2007-02-21 Thread Kevin Jackson
Just to throw my hat in the ring... If you don't like HttpUnit (for whatever reason). Watir[1] (IE) and FireWatir (firefox) can be used as an alternative for checking your links, driving the automation of tests. Getting them running as part of the build process is eaasy enough with , but if you

Re: AW: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
[EMAIL PROTECTED] wrote: I don't use the Jasper task for the development environment though, because one wouldn't mind a negligible wait for just one JSP page in the development environment and also because the Jasper task takes a very long time to complete, it is not suitable for a dev build b

AW: How to compile jsp files with ANT

2007-02-21 Thread Jan.Materne
>> I don't use the Jasper task for the development environment >though, because one wouldn't mind a negligible wait for just >one JSP page in the development environment and >> also because the Jasper task takes a very long time to >complete, it is not suitable for a dev build but only for >pro

Re: How to compile jsp files with ANT

2007-02-21 Thread Steve Loughran
Rashmi Rubdi wrote: Hi James, I use the Jasper task to mainly reduce the time it takes to load a JSP page. I only execute the Jasper task just before creating the WAR file for the production environment. You cant guarantee that Jasper code is compatible with anything other than the same v

Nightly Builds

2007-02-21 Thread Oliver Robinson
Hi all, I am not having much luck locating the nightly builds. I have tried using the nightly build link from the ant homepage, but can't find anything that looks like an ant build there - just three empty directories antunit, dotnet, and svn. Can anyone one point me to the right place? Thank

Re: How to compile jsp files with ANT

2007-02-21 Thread James Abley
I would suggest you take a closer look at my original suggestion. If you use the Jasper task, then I would think that the compiled versions of the JSP aren't portable off Tomcat. e.g. public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.run

Re: How to compile jsp files with ANT

2007-02-21 Thread Rashmi Rubdi
Hi James, I use the Jasper task to mainly reduce the time it takes to load a JSP page. I only execute the Jasper task just before creating the WAR file for the production environment. On the production environtment that gets multiple visitors throughout the day, every time someone makes the

Re: How to compile jsp files with ANT

2007-02-21 Thread James Abley
Why do you want to do this; e.g. is it part of a check to make sure that all JSP pages will compile? Typically, you'd get better results by using httpunit or a spider of sort sort to access every page and check that it doesn't come back with a 500 response. That way, you are using the deploymen

AW: Specifying a directory without losing the directory name

2007-02-21 Thread Jan.Materne
I am not sure what you want to have. But is that useful? Jan >-Ursprüngliche Nachricht- >Von: Jackson, Paul R [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 19. Februar 2007 19:59 >An: user@ant.apache.org >Betreff: Specifying a directory without losing the