Need a better solution to redirect PumpStreamHandler.outputStream to a BufferedReader

2006-08-23 Thread Zsolt
Hi, I have written this class to redirect PumpStreamHandler.outputStream to a Reader and splitting the stream into lines. I don't like my solution very much. Any ideas for a better implementation? outputStream = new OutputStreamConsumer(consumer, this.getCharsetName()); PumpStreamHandler handler

Re: Good guide on how to do logging with Ant

2006-08-23 Thread John Davis
Yes but I am looking for an online tutorial on how to use them. On 8/23/06, David TROGDON <[EMAIL PROTECTED]> wrote: There are a few different loggers: Default Logger NoBannerLogger MailLogger AnsiColorLogger XmlLogger They are implemented similar to: ant -logger org.apache.tools.ant.Defaul

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-23 Thread Steve Loughran
Antoine Levy-Lambert wrote: Hello Jack, not sure, maybe rhino.jar ? no, actually, this does not mean that a jar is missing, but rather that you do not have the right versions of bsf.jar, js.jar, rhino.jar (meaning matching versions containing each the function calls that work together). our

Re: loading an xml file into properties

2006-08-23 Thread Antoine Levy-Lambert
Hello EJ, You can look at the which has features to select specific xpaths and put their value into specific properties. Another possibility : if xslt is your friend, you can create a stylesheet which converts your XML into a temporary property file, which you can load and then delete.

loading an xml file into properties

2006-08-23 Thread EJ Ciramella
What's the easiest way (without going to custom ant libs) to load the following style xml file into properties? My problem with the XmlProperty task is it nests appserver.home together (with a comma). Is there a way to keep these as individual properties? model-base

Re: Running java program in debug mode

2006-08-23 Thread vinod_subbiah
Hi Antoine, It worked ! Yes this way i was able to debug my programs launched using Ant . Thanks ! I was trying to get this one working for last few days.. Have a nice day, Regards, Vinodh. [EMAIL PROTECTED] [EMAIL PROTECTED] 08/23/2006 02:13 PM Please respond to user@ant.apache.org

Re: RE: Groups of filesets

2006-08-23 Thread Antoine Levy-Lambert
Hello, Ant 1.7 will have groups of filesets (Resource collections). Regards, Antoine Original-Nachricht Datum: Tue, 22 Aug 2006 19:46:07 +0200 Von: "Chaudhuri, Hiran" <[EMAIL PROTECTED]> An: "Ant Users List" Betreff: RE: Groups of filesets > Hmmm, that means we might need to

Re: Running java program in debug mode

2006-08-23 Thread Antoine Levy-Lambert
Hello Vinod, use these arguments : -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044 and create a remote debugging configuration in Eclipse, using the same port 1044 (can be another number as long as it is the same to start java and in Eclipse) Also add something like Thr

Re: ?!

2006-08-23 Thread Gilbert Rebhan
Hi, David > Well maybe I'm misunderstanding you, but the xml logger I mentioned [...] yup, i know i can run an antfile with -logger ... [..] > This is a bulk data collection, but from looking at your code, I think > you want to be able to write out particular things at particular times, > for wh

RE: ?!

2006-08-23 Thread David Corley \(AT/LMI\)
Well maybe I'm misunderstanding you, but the xml logger I mentioned actually captures everything that happens in the first build I mentioned. You simply run ant with the following command: ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile build_log.xml You'll actually get no screen outpu

Re: Good guide on how to do logging with Ant

2006-08-23 Thread David TROGDON
There are a few different loggers: Default Logger NoBannerLogger MailLogger AnsiColorLogger XmlLogger They are implemented similar to: ant -logger org.apache.tools.ant.DefaultLogger ant -logger org.apache.tools.ant.NoBannerLogger etc The xml logger needs a xmlLogger.file property that is se

Good guide on how to do logging with Ant

2006-08-23 Thread John Davis
Where can I get an example on using logging? Is there a tutorial available? -- John F. Davis "JD" http://www.skink.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Running java program in debug mode

2006-08-23 Thread vinod_subbiah
Hi All, I created a Java project with a HelloWorld java program . I use ant to build and run it.It runs fine.But when i want to run using eclipse debugger It did not stop at break points to let me step through the program. Please help me t

RE: ?!

2006-08-23 Thread Rebhan, Gilbert
Hi, David /* I normally use a two-build setup with a batch file. The batch file calls the first build, which is the main build, and I tell Ant to use its xml logger. Once that build has finished, the batch file calls a second build that converts the xlm log file from the first build into html u

Re: subtasks as arbitary params?

2006-08-23 Thread Emmanouil Batsis
Antoine Levy-Lambert wrote: I suppose you want to create a custom task which has nested elements ? You should read the"Develoing with Ant" section of the manual, it is all there. Yup, you where right, it was all there. In the end i just created a javabean "ConfigParam" with properties "na

RE: ?!

2006-08-23 Thread David Corley \(AT/LMI\)
I normally use a two-build setup with a batch file. The batch file calls the first build, which is the main build, and I tell Ant to use its xml logger. Once that build has finished, the batch file calls a second build that converts the xlm log file from the first build into html using the log.xsl

?!

2006-08-23 Thread Rebhan, Gilbert
Hi, in many buildscripts it's required to collect some data during the whole build over and write it to a file, send it as mail ... etc. at the end of the build. it's possible to echo data to a file and write to that file with echo append as data grows, but that repeating echo is kind of boring.