fileset and java tasks?

2010-06-04 Thread Jakob Fix
Hi, I'd like to execute a java task on each file in a given directory, but I can't see how to combine the and tasks. (Regarding the output of the task I intend to save it into a new file using the i/o redirector.) any help with this dilemma is greatly appreciated. cheers, Jakob. -

xslt task problem (xpath expression)

2010-05-25 Thread Jakob Fix
Hi, any idea why the following xpath expressions are not understood by ant's builtin xsl task? Doesn't seem out-of-spec to me, and saxon groks it, the stylesheet is version 2.0. elt1[elt2[matches(text(), '^[\d]+$')]] elt1[elt2[matches(., '^[\d]+$')]] elt1[elt2[matches(., '^\d+$')]] elt1[matches(.

Re: backslash escaping in a regex

2010-05-11 Thread Jakob Fix
10-05-11, Jakob Fix wrote: > >> Hi, looked through the archive, but I don't think pathconvert can be >> used in this case. > >> property file: >> prop=E:\\foo\\bar > > property files and backslahes are a pain. > >> build file: >> >>

backslash escaping in a regex

2010-05-11 Thread Jakob Fix
Hi, looked through the archive, but I don't think pathconvert can be used in this case. property file: prop=E:\\foo\\bar build file: actual result: value="E:foobar" desired result: value="E:\foo\bar" I also tried double escaping i.e. prop=E:foobar but there all backslashes dis

problem using sqlcmd with ant

2008-06-27 Thread Jakob Fix
Hi, we're trying to execute a bunch of sql commands on MS SQL Server 2000 with ant and sqlcmd -- sqlcmd because ant's built-in sql task doesn't allow for trusted connections, or am I wrong?.

Re: Repace String by ignoring the case.

2006-04-25 Thread Jakob Fix
On 4/25/06, Navaneethakrishnan, S <[EMAIL PROTECTED]> wrote: > Is it possible to replace the occurence of a given string in a file with > another string by ignoring the case? > > I tried with tasks, but it does not workout. http://ant.apache.org/manual/OptionalTasks/replaceregexp.html use the fl

Re: can i use ant under windows xp?

2006-04-06 Thread Jakob Fix
On 4/6/06, saoussen belhassen <[EMAIL PROTECTED]> wrote: > can I use ant with windows XP. if yes, what is the > necessary features that i need to install it? http://ant.apache.org/manual/install.html#sysrequirements HTH, -- cheers, Jakob.

Re: ant xslt on java 1.5

2006-03-31 Thread Jakob Fix
I use the mtxslt task which allows you to specify the processor to use. http://mtxslt.sourceforge.net/ On 3/31/06, Robert Koberg <[EMAIL PROTECTED]> wrote: > Mark Lybarger wrote: > > i'll go ahead and reply to my own post. the "solution" seems to put > > xalan.jar into the ant lib folder. With

Re: command line target available from inside build script?

2006-02-28 Thread Jakob Fix
Steve, > Ant doesnt set the name of the target. What happens if there is more > than one target on the command line? What if you are being called from > an outer build file that has different names? It wouldn't scale. makes sense. > use a property: > > ant -f generic.build -Dtarget=cdrom yep, w

Re: command line target available from inside build script?

2006-02-28 Thread Jakob Fix
Jan, thanks for this. I appreciate it. Still, searching my year-long-or-so gmail ant-users account containing a couple of thousand messages for terms as generic in the context of ant as "property", "target" and "name" yields so many unrelated results that it's difficult to find the "Nadel im Heuh

Re: command line target available from inside build script?

2006-02-28 Thread Jakob Fix
m|intranet|internet} inside the script a property will get assigned the target's value, and I can then use this property to decide whether or not I want to execute the "enable-log-mechanism" and "disable-general-conditions", etc. mmh, if there are better ways I'm

Re: command line target available from inside build script?

2006-02-28 Thread Jakob Fix
n't list the target property or something similar ... sorry for looking in the wrong places :-) > Jan > >-Ursprüngliche Nachricht- > >Von: Jakob Fix [mailto:[EMAIL PROTECTED] > >Gesendet: Dienstag, 28. Februar 2006 16:09 > >An: Ant Users List > >Betref

command line target available from inside build script?

2006-02-28 Thread Jakob Fix
Hi, I was wondering whether the target given on the command line like this ant -f generic.build server (i.e. "server" in this example) is available from within the ant script, like ${target}. apparently, it's not ${target} because otherwise I wouldn't have asked, I tried that, and yes, the docu

Re: replace < with < in property ??

2006-02-03 Thread Jakob Fix
Gilbert, [jumping into this discussion a bit late] On 03/02/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > Background = users write some instructions > for Websphere admins in a text field of a webform. > Often the instructions contain some xml snippets for > editing configfiles. > All the inp

Re: Urgent help with FTP task.....please help

2005-12-15 Thread Jakob Fix
On 15/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > There is an issue of password being in clear text while using the ftp > task. Is there a way around it . > http://ant.apache.org/manual/OptionalTasks/scp.html ? - To uns

Re: build failed error

2005-11-29 Thread Jakob Fix
Could this be an XML declaration at the wrong place (ie., for example after the root element, instead before)? On 29/11/05, Suzana Barreto <[EMAIL PROTECTED]> wrote: > Hi, my build file which previously worked is now failing to build - no > changes to the file were made. This is the error messag

Re: AntDoc fails under JDK 1.5

2005-11-29 Thread Jakob Fix
On 28/11/05, Dominique Devienne <[EMAIL PROTECTED]> wrote: > > I am trying to use antDoc with JDK 1.5, but it doesn't work. I get an error > > (see below). Do I have to install another JDK version in order to get it > > work or I have to install specific library?, I am using Ant 1.6.5 > > This is t

Re: apply task trouble for command using < and >

2005-11-28 Thread Jakob Fix
Jan, On 28/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I think these steps should works > - compile the class (needs ant.jar on classpath) > - , e.g. > - use the "new" task Now I feel really stupid, but what the hell ... ok, I compiled the class like this javac -classpath "./lib/an

Re: apply task trouble for command using < and >

2005-11-28 Thread Jakob Fix
Dominique, On 26/11/05, Dominique Devienne <[EMAIL PROTECTED]> wrote: > > Hmm, just one small problem I couldn't solve yet. Apply will bail out > > if it tries to output a file to a directory that doesn't exist. > > I ran into the same issue in the past, and had to "patch" to > solve it, as you

Re: apply task trouble for command using < and >

2005-11-25 Thread Jakob Fix
Jan, now it even looks aesthetic :-) I've integrated jslint which checks the syntax (see http://www.crockford.com) using another macrodef, and if all files pass runs them through jsmin. Well, I'm aware that this may get OT, but I must say I learnt an awful lot. Thanks again, Jan. Hmm, just one

Re: apply task trouble for command using < and >

2005-11-24 Thread Jakob Fix
filename is passed to jsmin as an argument, but where? I know this because it re-appears at the beginning of the out output file as a comment, which is what jsmin does with additional arguments. (This is why I tried to uncomment the line, but to no effect.) Thanks a lot. Now, how can I con

Re: apply task trouble for command using < and >

2005-11-24 Thread Jakob Fix
No examples are given in the documentation http://ant.apache.org/manual/CoreTypes/redirector.html I tried to add inside the container, but am not seeing any light at the end of the tunnel. Please help! :-) > Jan -- cheers, Jakob. > >-Ursprüngliche Nachricht- >

apply task trouble for command using < and >

2005-11-24 Thread Jakob Fix
Hello, I have the following command line (see [1] for jsmin): jsmin < bigfile.js > smallfile.js "prefix file with this comment" To do this for an entire directory I created this task: This runs, but the result is not at all satisfactory: - No output

Re: Backup before deploy

2005-11-22 Thread Jakob Fix
Keith, On 22/11/05, keith wong <[EMAIL PROTECTED]> wrote: > Hello, > I need control remote host thru ssh to tar all backup > file, but I get into problem of "su - " command after > ant in. I not sure how to keep ssh session > and process two steps command to archive. Here is > steps I need to mak

Re: generate unique id

2005-10-25 Thread Jakob Fix
Mikael, On 25/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > you could maybe make one using a formatted date time? plus a build-number? http://ant.apache.org/manual/CoreTasks/buildnumber.html > -Original Message- > From: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] > Sent:

Re:

2005-10-20 Thread Jakob Fix
On 20/10/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying: > > > > > > > but still no match. > > This is the line: > > you have: * should be: .* you have: [A-Z0-9] should be: [A-Z0-9]+ try this: http://regex.info/ HTH Jakob.

Re:

2005-10-20 Thread Jakob Fix
On 20/10/05, Greg Winton <[EMAIL PROTECTED]> wrote: > Mikael, > > >> " > > >This is a numeric (hexadecimal) entity representing the >double quote > > >character. You can use it to represent double quote >characters inside > > >attribute values. > > > > you can use """ as well. I find this a little

Re:

2005-10-20 Thread Jakob Fix
Mikael, On 20/10/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: > Hi, > > I am not quite confident how you mean? Can you please show me? And what is > the meaning of > > " This is a numeric (hexadecimal) entity representing the double quote character. You can use it to represent doubl

Re:

2005-10-20 Thread Jakob Fix
Mikael, On 20/10/05, Mikael Petterson (KI/EAB) <[EMAIL PROTECTED]> wrote: > Hi, > > I tried the following; > > "[A-Z0-9]"\)" replace > ="\1${product_number_html}\_${product_revision_html}"/> > > but the " seems to mess up the match. use " to escape double quote characters. HTH -- cheers,

Re: clarification for Fileset documentation?

2005-09-29 Thread Jakob Fix
Jan, On 29/09/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >would it not be possible to simply add a note (or an example) > >that clarifies the change of context? just trying to be helpful. > > Sure. In http://ant.apache.org/manual/CoreTypes/fileset.html ? yes. > Something like > >

Re: clarification for Fileset documentation?

2005-09-29 Thread Jakob Fix
it not be possible to simply add a note (or an example) that clarifies the change of context? just trying to be helpful. > Jan > thanks, Jakob. > >-Ursprüngliche Nachricht- > >Von: Jakob Fix [mailto:[EMAIL PROTECTED] > >Gesendet: Donnerstag, 29. Septemb

clarification for Fileset documentation?

2005-09-29 Thread Jakob Fix
Hello, I just spend an hour or so trying to understand why the following wouldn't work: The reason is, and this is IMHO not mentioned in the documentation, that the nested and elements are relative to the directory defined in the 's dir attribute, and not relative to the current directory

Re: problem with apply task

2005-09-29 Thread Jakob Fix
Matt, On 28/09/05, Matt Benson <[EMAIL PROTECTED]> wrote: > Jakob--the "don't know how to handle it" indicates a > problem with your mapper. ah, that's good to know! I was wondering who was responsible for this message. > Try changing your mapper to > > Yes!!! it does work. great. thanks ev

Re: problem with apply task

2005-09-26 Thread Jakob Fix
Hello Brian, thanks for your answer. unfortunately, this doesn't work either (same result and debug messages). On 26/09/05, Dick, Brian E. <[EMAIL PROTECTED]> wrote: > Sometimes the commandline arguments are a bit tricky. Try the following. > > > > > > > > >

Re: problem with apply task

2005-09-26 Thread Jakob Fix
Hello Antoine, thanks for taking an interest in this problem. On 23/09/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > Jakob Fix wrote: > > >Hello, > > > >I am trying to use ant to run ImageMagick's composite command over a > >fileset, like

problem with apply task

2005-09-22 Thread Jakob Fix
Hello, I am trying to use ant to run ImageMagick's composite command over a fileset, like this: The commandline for the composite command is this, which I know works: > composite -dissolve 40% -tile watermark.png in/hsc-c0311d.png > out/