Re: How to capture HTTP response with the status 500?

2017-01-17 Thread Klaus Malorny
On 17.01.17 08:08, Al Le wrote: So maybe it's because of the inbuilt JDK's implementation of connection.getInputStream (it throws an exception if the status is 500). I've debugged it and found out that the connection object is of type 'sun.net.www.protocol.https.HttpsURLConnectionImpl' which d

Re: Aw: XSL transformation with Ant: sorting a list

2016-03-07 Thread Klaus Malorny
On 07.03.2016 12:01, Al Le wrote: It does not occur if I perform it via a Java program I have to correct myself. It tried a java program in different JVMs, and it gives me different results. In one case it gives the correct result, in other cases still the wrong result is delivered. I could not

Re: Ideas for future directions for Ant

2012-02-21 Thread Klaus Malorny
On 21/02/12 00:01, Bruce Atherton wrote: 5. Adding features like: a) Identifying ways for Ant to automatically find parts of a build that can be run in parallel. This allows taking advantage of multicores for example. b) Distributed Ant builds in a cluster or a cloud. c) a new build style that i

Re: Update property value in file and retaining format.

2012-01-19 Thread Klaus Malorny
On 18/01/12 17:46, Nehal Patel wrote: Nice, this was the solution! Frankly this is a bit more advanced that i know. I don't know the following: What the "^" means. What the "$" means. What the "\1" means. All you want to know about regular expressions and even more: http://www.regular-expr

Re: propertyregex Extraction of last element in the PATH??

2012-01-02 Thread Klaus Malorny
On 02/01/12 05:43, narenvudugu wrote: Please Find updated Post! I am trying to allow complete incoming input and extract last element name from the input ServiceURL path (usaly separated by /),please find below script which is not working for me...please help as soon as possible.

Re: AW: Ant & patching XML files

2009-03-13 Thread Klaus Malorny
On 05/03/09 10:04, jan.mate...@rzf.fin-nrw.de wrote: see http://marc.info/?l=ant-user&m=123255143025824&w=2 Jan Hi, as this is the one I mentioned in my e-mail, this means there is no alternative? Regards, Klaus - To unsu

Ant & patching XML files

2009-03-05 Thread Klaus Malorny
Hi all, I am looking for a method to manipulate XML files from Ant, i.e. adding/removing elements, changing attributes or elements' contents, far simpler than the capabilities of XSL/T. I have found the XmlTask ([1], [2]) and this seems to be quite flexible. However, as part of a configuratio

Re: How to trace visually ANT script processing?

2009-01-08 Thread Klaus Malorny
On 2009-01-08 20:53, Ben Stover wrote: As well known I can start an Ant script by entering ant However the visual output at the command prompt will be very small. What I am searching for is a visual trace which outputs every statement BEFORE and AFTER execution. Here embedded variables like $

Re: well-defined ant/xslt problem: (how) can I do this?

2008-02-07 Thread Klaus Malorny
Bill Milbratz wrote: Hi, i have a problem which I don't know if I can solve elegantly with ant. The problem: I'd like to use the xslt task to transform these inputs into the following outputs; inputs: v10/changes.xml v11/changes.xml v12/changes.xml outputs: v10/changes.out v11/chan

Re: AW: Unicode for Control-C

2008-01-29 Thread Klaus Malorny
Steve Loughran wrote: [EMAIL PROTECTED] wrote: Fast Google search: http://www.answers.com/topic/control-c * ASCII and Unicode representation of "End Of Text": Octal code: 3 Decimal code: 3 Hexadecimal code: 03, U+0003 Mnemonic symbol: ETX I think you can use that in no, XML doesnt a

Re: AW: AW: AW: extended parallelism

2007-12-20 Thread Klaus Malorny
[EMAIL PROTECTED] wrote: you'll get the following dependencies among the _tasks_: taskb1: -none- taskb2: taskb1 taskb3: taskb1 where is ? Just for annotating? taskb1 : -none- parallel: taskb1 and the execution of 'parallel' would be taskb2: - none- taskb3: t

Re: AW: AW: extended parallelism

2007-12-19 Thread Klaus Malorny
[EMAIL PROTECTED] wrote: Usually tasks have to be processed sequentially. Jan Sure, but you can regard the body of a target as having an implicit block. e.g. you'll get the following dependencies among the _tasks_: taska1: -n

Re: AW: extended parallelism

2007-12-19 Thread Klaus Malorny
[EMAIL PROTECTED] wrote: Thinking a little bit more about the issue, I was wondering whether it would be a good idea to integrate the target-level parallelism (as discussed here) and the task-level parallelism (i.e. task) into one beast, as such issues like output handling and maximum number of

Re: extended parallelism

2007-12-19 Thread Klaus Malorny
Chuck Holzwarth wrote: Perhaps the facility that spawns the targets could manage the screen/buffer output. This would mean that some facility would have to exist similar to named pipes in Unix. This way, console output would be directed from the buffer (or pipe) that had first output while other

Re: extended parallelism

2007-12-18 Thread Klaus Malorny
Chuck Holzwarth wrote: [...] How do you propose to handle potential fatal/non fatal errors? If target a exits due to an error, should there be an option to kill a or allow it to complete (similar to failonerror="yes/no")? If both a and (b,c) must succeed for d, should a be killed if b or c fails

Re: AW: AW: extended parallelism

2007-12-18 Thread Klaus Malorny
[EMAIL PROTECTED] wrote: Oh, have to have a look at that. If I change the semantic this has to be made explicit ... (It can be done because you have to specify the executor for your own ...) "Ant tries to execute the targets in the depends attribute in the order they appear (from left to right)

Re: AW: extended parallelism

2007-12-18 Thread Klaus Malorny
[EMAIL PROTECTED] wrote: Isn't this the default behaviour anyway? No - there is no multithreading by default. That's why I write the ParallelExecutor. If such a dependency did exist, it should be incorporated in the depends attribute of the 'b' & 'c' target declarations. Thats the meanin

extended parallelism

2007-12-18 Thread Klaus Malorny
Hi, with the increased availability of multi-core systems, I am wondering whether there are ways to improve the capabilities of Ant to parallelize the build process. While it is possible to execute tasks in parallel within a target, it seems to not be simple to execute multiple targets in parall

Libraries for optional tasks defined from within build.xml

2007-12-15 Thread Klaus Malorny
Hi, sorry if this is a newbie question, but I did not find an answer in docs, faqs, google etc. I'm using Ant 1.7, and I would like to use the