Capturing Ant output in a way similar to Unix pipes

2007-10-02 Thread Holger Rauch
Hi to all list members, I've looked in the Ant manual and googled about the questions mentioned below but unfortunately haven't found anything useful. Is it possible to use the output of one Ant task as the input of another Ant task (some sort of piping mechanism as it exists in Unix) without the

Checking whether task got the right no of params from beanshell script

2006-09-14 Thread Holger Rauch
Hi, I'm using a beanshell script to invoke XSLTProcess (which corresponds to the element). I've verified that the no of stylesheet params inside the script is correct. How can I verify that the xsltproc instance is parameterized correctly from within the beanshell script? Any help will be greatl

Invoking Ant XML fragments (Was:Re: Adding variable no of elements to task)

2006-09-11 Thread Holger Rauch
Hi Antoine, after googling a bit, I found this: http://www.oopsconsultancy.com/software/xmltask/#examples => It's possible to create an XML fragment describing the task (including the elements for the stylesheet parameters) But that leads me to a totally different question: Is it possible

Adding variable no of elements to task

2006-09-08 Thread Holger Rauch
Hi, I'm faced with the following situation: - The stylesheet parameters supposed to be passed to the XSLT processor should be configurable from the "outside world", like this - I want to provide a macro that creates a bunch of elements with name and expression attributes based on the numb

Re: Depending on varying target using param inside antcall

2006-09-06 Thread Holger Rauch
Hi, I solved this problem like this (excerpt from my build file "do-actual-test.xml"): 1. The necessary macros (I'm using Ant 1.6.2)

Re: Depending on varying target using param inside antcall

2006-09-06 Thread Holger Rauch
Hi Daniel, first of all, thanks for your reply. Which version of Ant are you using? I'm using 1.6.2 and it doesn't work as shown by this error message: antcall-param-test.xml:15: The type doesn't support the nested "target" element. Kind regards, Holger signature.asc Description: D

Depending on varying target using param inside antcall

2006-09-05 Thread Holger Rauch
Hi, I would like to have a target depend on another target whose name is specified as the value of a param used inside an . Is this possible? If not, can this functionality be achieved in another way? If so, which one? Below is an example that (hopefully) clarifies what I'm trying to do. It consis

Re: Neither dirset nor fileset with type selector seem to select directories

2006-05-11 Thread Holger Rauch
here any other way to get more info from Ant??? Here's the path structure I was playing with and my modified build file (most stuff commented out, so that it can be selectively reenabled for testing purposes). > >Holger Rauch wrote: > [...] > >> > >>test(di

Neither dirset nor fileset with type selector seem to select directories

2006-05-10 Thread Holger Rauch
Hi! I've created the following simple directory structure for testing purposes. I would like to see only dirs below test ("blah" and "blubber") in my dirset/fileset. The Ant version I'm using is 1.6.5 in conjunction with JDK 1.5.0_06 on Linux: test(dir) |--> blah (dir) |--> blubber (

propertyregex: capitalizing entire string

2005-05-10 Thread Holger Rauch
Hi! I'm trying to capitalize a string as demonstrated with the following small sample build file: foo = ${foo} FOO = ${FOO} The output I get however is that each lowercase letter is converted literally to "[A-Z]": main: [echo] foo = blah/

Re: Overview on usage of if/unless attributes

2005-04-06 Thread Holger Rauch
On Wed, 06 Apr 2005, Ninju Bohra wrote: > [...] > There have been efforts to integrate the "if" (and > "unless") logic into all taskdefs, but it has been > rejected repeatedly :-( > [...] Can anyone on this list tell me for what reason(s) the if/unless logic has been rejected? Thanks.

Re: Overview on usage of if/unless attributes

2005-04-06 Thread Holger Rauch
Rainer, thanks for reminding me on . I forgot about it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Overview on usage of if/unless attributes

2005-04-06 Thread Holger Rauch
Hi! I'm aware that if/unless attributes can be used to select targets depending on whether the value of some property is set or not. Where else (types/tasks) can if/unless be used in addition to targets? Is there an overview on this issue in some place? (I tried using "if" on in order to set th

Re: Why don't my selectors select anything?

2005-04-01 Thread Holger Rauch
Rehi! On Fri, 01 Apr 2005, [EMAIL PROTECTED] wrote: > In contrast to Unix, Windows has not real root directory. But when opening a DOS command prompt, it is possible to cd from e.g. C:\winnt\system32 to "\" of the current drive (C:) using "cd \". How can this be possible if there's no real ro

Re: Why don't my selectors select anything?

2005-04-01 Thread Holger Rauch
Hi Jan! Thanks a lot for your quick reply On Fri, 01 Apr 2005, [EMAIL PROTECTED] wrote: > [...] > Ok, but does dir="/" really work on Win*, too? If not, is there any way of making your suggestion platform independent? TIA. Greetings, Holger

Re: Why don't my selectors select anything?

2005-04-01 Thread Holger Rauch
On Tue, 29 Mar 2005, Ivan Ivanov wrote: > change with > [...] That indeed fixed the problem, thanks. Two questions related to selectors coming to my mind are: Can selectors be used to select files located in different absolute paths from within the same fileset? Example: I have the following

Re: Creating new JARs based on property change

2005-04-01 Thread Holger Rauch
On Wed, 16 Mar 2005, Rainer Noack wrote: > I'm not really sure what you mean. > Either you have one "boolean" property that tells you cfg has changed or not > Or you have two properties with last and current cfg. > [...] Thanks a lot! The second approach just works nicely for me :-)

Why don't my selectors select anything?

2005-03-29 Thread Holger Rauch
Hi! I'm using Ant 1.6.2 on Linux and having trouble with selectors in a fileset. In the following small build file "foo" and "bar" are NOT included in the fileset even though these two files actually exist. Unfortunately, running "ant -d" doesn't give me additional info and reading the Ant manual

Re: Creating new JARs based on property change

2005-03-16 Thread Holger Rauch
On Wed, 16 Mar 2005, Rainer Noack wrote: > Remove the existing jar. Sure, but I only want to remove the existing JAR if the property indicating whether the JAR is supposed to be signed has changed since otherwise I end up rebuilding the JAR file even though it wasn't necessary. This property is s

Creating new JARs based on property change

2005-03-16 Thread Holger Rauch
Hi! In my build file I have a property telling whether JARs are supposed to be signed using or not. Furthermore, there's on uptodate check based on whether any of the JAR file's contents are more recent than the JAR file itself. How can I enforce rejarring of a JAR file when the property indicat

Re: Problem with fileset having members containing absolute path names

2005-03-15 Thread Holger Rauch
Hi Peter! Thanks a lot for your quick reply! On Tue, 15 Mar 2005, Peter Reilly wrote: > One can have a top-level fileset on unix. What happens on Windows? Do I have to use some other value for dir there? > [...) > However, the filename specs in the includes still need to be relative > so they

Problem with fileset having members containing absolute path names

2005-03-15 Thread Holger Rauch
Hi! I've run into a problem using filesets whose members contain absolute path names. The following short build script illustrates the problem. My questions are: Why is the property files.converted (supposed to hold the fileset's contents) empty even though the files actually exist on my system?

Re: flatten mapper for scp task?

2004-10-13 Thread Holger Rauch
Hi Ivan! First of all, thanks a lot for your quick reply! On Wed, 13 Oct 2004, Ivan Ivanov wrote: > How about first copying the files to a temporary > directory and then scp'ing to the server and finally > deleting then from tmp: > [...] I verified your suggestion and it works indeed. Thanks a

flatten mapper for scp task?

2004-10-13 Thread Holger Rauch
Hi! I'm using the scp task of Ant 1.6.2 in order to copy some SQL scripts which are stored in various directories on the source system to a target system. On the target system, I want all .sql files to appear below a single directory. How can I achieve this if scp doesn't support neither nor

Questions on serverdeploy task

2004-10-08 Thread Holger Rauch
Hi! I'm using ant 1.6.2 in conjunction with JDK 1.4.2_05 on Debian GNU/Linux 3.0 ("Woody"). From my ant build file, the serverdeploy task is invoked like this: The settings are: weblogic.server.protocol is set to http weblogic.dmgctrl.server is the name of the virtual server (as it shows up