Re: apply task with multiple filename mappings - how?

2011-02-18 Thread Stefan Bodewig
On 2011-02-18, david__schmidt wrote: > I am having trouble seeing how I can get a job done with apply task. I > would like to give a fileset to apply, then send in several parameters based > on variations of the filenames. So, for example... given "filename.s", I'd >

Re: apply task with multiple filename mappings - how?

2011-02-18 Thread Dominique Devienne
On Fri, Feb 18, 2011 at 4:11 PM, david__schmidt wrote: > but how can I do multiple mappings - multiple variations on the filename per > invocation?  Or is there another way to approach the problem? I can't see a way to do it with either. Peter's [1] supports multiple mappers and he even has an

apply task with multiple filename mappings - how?

2011-02-18 Thread david__schmidt
Hello, ant folks: I am having trouble seeing how I can get a job done with apply task. I would like to give a fileset to apply, then send in several parameters based on variations of the filenames. So, for example... given "filename.s", I'd like each command to look like this:

Re: Logging for apply task

2009-05-07 Thread Francis Galiegue
Le Friday 08 May 2009 00:06:03 David Raich, vous avez écrit : > Does anyone have a way to make log a one-line summary for > each file it applies its command to? > Using ant-contrib's , this is easy:

Logging for apply task

2009-05-07 Thread David Raich
Does anyone have a way to make log a one-line summary for each file it applies its command to? I'd like either the actual command issued, or at least the filename. This would help greatly for interpreting the error and operation logs which, unfortunately, do not usually show the file name i

Re: apply task

2008-04-21 Thread Dominique Devienne
On Sun, Apr 20, 2008 at 12:57 AM, Shawn Castrianni <[EMAIL PROTECTED]> wrote: > I just discovered the apply task as a better exec task. I like that it > automatically loops through the fileset one at a time and automatically does > a timestamp check if you give it a dest and mapp

apply task

2008-04-19 Thread Shawn Castrianni
I just discovered the apply task as a better exec task. I like that it automatically loops through the fileset one at a time and automatically does a timestamp check if you give it a dest and mapper. However, I have one small problem. On windows, the C compiler specifies the output file name

Re: Apply task and multiple target files

2008-04-17 Thread Matt Benson
--- "Gerrit ." <[EMAIL PROTECTED]> wrote: > > Hi, I'm new to Ant. Maybe there's someone here who > can point me to the relevant documentation or an > example for my problem: > > > I'd like to call for an executable which > needs to be passed multiple targets, whose names are > derived from th

Apply task and multiple target files

2008-04-17 Thread Gerrit .
Hi, I'm new to Ant. Maybe there's someone here who can point me to the relevant documentation or an example for my problem: I'd like to call for an executable which needs to be passed multiple targets, whose names are derived from the source file. Two of these are actual filesystem paths, on

Re: How to see the command issued by apply task?

2007-10-10 Thread glenn opdycke-hansen
I usually the command before executing it. This way it gets in the log. --glenn On 10/10/07, Krzysztof Kucybala <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a question as in the subject. I'm trying to run a command with > several arguments passed on a set of files, and I'd really like to see >

Re: How to see the command issued by apply task?

2007-10-10 Thread Matt Benson
Run ant in verbose (-v) mode. HTH, Matt --- Krzysztof Kucybala <[EMAIL PROTECTED]> wrote: > Hi, > > I have a question as in the subject. I'm trying to > run a command with > several arguments passed on a set of files, and I'd > really like to see > the actual command that's being issued to th

How to see the command issued by apply task?

2007-10-10 Thread Krzysztof Kucybala
Hi, I have a question as in the subject. I'm trying to run a command with several arguments passed on a set of files, and I'd really like to see the actual command that's being issued to the os, cause something's not ok and I'm running out of ideas. Can someone help me on this? Best regards

apply task -

2007-04-20 Thread Robert Schulz
Hi! I finally found my solution in the archives - but i think of it missing a lot of beauty ant intuitivity :( http://mail-archives.apache.org/mod_mbox/ant-user/200604.mbox/<5ea470920604061311l69be9500h39fef9f322a207f%40mail.gmail.com> what i expected the apply task to have is some possi

Re: "dest" attribute of apply task is not working as expected?

2006-06-05 Thread Matt Benson
--- "Guttula, Mohan" <[EMAIL PROTECTED]> wrote: > Hello All, > > I'm using "apply" task to compile my actuate reports > using the following > target: > - > > >value="C:\Program > Files\Actuate8\eRD

"dest" attribute of apply task is not working as expected?

2006-06-05 Thread Guttula, Mohan
Hello All, I'm using "apply" task to compile my actuate reports using the f

Re: apply task trouble for command using < and >

2005-11-28 Thread Steve Loughran
Jakob Fix wrote: 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 -classp

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
>> I think these steps should works >> - compile the class (needs ant.jar on classpath) >> - , e.g. > name="apply2"/> >> - use the "new" task > >Now I feel really stupid, but what the hell ... ok, I compiled >the class like this > javac -classpath "./lib/ant.jar" Apply.java > >which indeed create

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

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
ggrrr next try (why does Alt-S sends (as Ctrl-Return does) and doesnt select the subject... "nice" outlook...) >>That's terrific, thanks a lot! However, unfortunately, I do not know >>how to integrate your extension of the Apply class into my >current Ant >>setup. I think these steps

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
Sorry, touched the wrong key ... More inside >>That's terrific, thanks a lot! However, unfortunately, I do not know >>how to integrate your extension of the Apply class into my >current Ant >>setup. I think these steps should works - compile the class (needs ant.jar on classpath) - the c

AW: apply task trouble for command using < and >

2005-11-28 Thread Jan.Materne
>> I'll try to update the "real" apply task next week, but you can use >> the custom task below in the mean time (it just "plugs in" at the >> right time to create the directories, without duplicating >the >> code itself. Ant's maps

Re: apply task trouble for command using < and >

2005-11-28 Thread Jakob Fix
to "patch" to > solve it, as you don't know "a priori" which directories to create > with using a destDir and a mapper. Ah, thank you for confirming this problem. Tha'ts exactly my case. > I'll try to update the "real" apply task next w

Re: apply task trouble for command using < and >

2005-11-25 Thread Dominique Devienne
ries to create with using a destDir and a mapper. I'll try to update the "real" apply task next week, but you can use the custom task below in the mean time (it just "plugs in" at the right time to create the directories, without duplicating the code itself. Ant'

AW: apply task trouble for command using < and >

2005-11-25 Thread Jan.Materne
need the first statement. ** fetches all directories - inclusive the current . Jan >-Ursprüngliche Nachricht- >Von: Jakob Fix [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 25. November 2005 17:39 >An: Ant Users List >Betreff: Re: apply task trouble for command using

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

AW: apply task trouble for command using < and >

2005-11-25 Thread Jan.Materne
ink about using a s#(.*)\.js#\dest\1.js# but you got the meaning. >> >> > >Create a fileset of all files in the src/ directory ending in >.js. I guess this is represented internally as a list of >absolute pathnames of all files ending .js in the src/ >direc

Re: apply task trouble for command using < and >

2005-11-24 Thread Jakob Fix
t of absolute pathnames of all files ending .js in the src/ directory. The apply task will then cycle through this list, file by file. > Now, apply the mapper defined earlier. But what does this mean exactly "apply the mapper"? When the file is to be written (output), wr

Re: apply task trouble for command using < and >

2005-11-24 Thread Dominique Devienne
> 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: > > > > > > > > > > > > > My suspicion is that the problem may be caused by the

AW: apply task trouble for command using < and >

2005-11-24 Thread Jan.Materne
t Users List >Betreff: Re: apply task trouble for command using < and > > >Jan, > >On 24/11/05, [EMAIL PROTECTED] ><[EMAIL PROTECTED]> wrote: >> < and > mean redirection of STDIN and STDOUT from/to file. >> So I would have a look at nested s. > >

Re: apply task trouble for command using < and >

2005-11-24 Thread Jakob Fix
>Von: Jakob Fix [mailto:[EMAIL PROTECTED] > >Gesendet: Donnerstag, 24. November 2005 13:53 > >An: Ant Users List > >Betreff: apply task trouble for command using < and > > > > >Hello, > > > >I have the following command line (see [1] for jsmin): >

AW: apply task trouble for command using < and >

2005-11-24 Thread Jan.Materne
< and > mean redirection of STDIN and STDOUT from/to file. So I would have a look at nested s. Jan >-Ursprüngliche Nachricht- >Von: Jakob Fix [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 24. November 2005 13:53 >An: Ant Users List >Betreff: apply task trou

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: 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: Apply task argument issues...

2005-09-28 Thread Matt Benson
t be best to subclass apply to achieve this. Dev: We should probably add either a nested mapper or prepend/append attributes to srcfile and targetfile elements in apply for future versions of Ant. -Matt > > Hope this helps, > Nicolas > > Alan Moss wrote: > > >I have an

Re: problem with apply task

2005-09-28 Thread Matt Benson
Jakob--the "don't know how to handle it" indicates a problem with your mapper. Try changing your mapper to If that doesn't work, try HTH, Matt --- Jakob Fix <[EMAIL PROTECTED]> wrote: > Hello Brian, > > thanks for your answer. unfortunately, this doesn't > work either (same > result and

Re: Apply task argument issues...

2005-09-26 Thread Nicolas Vervelle
Hi, A few ideas (not tested, just ideas) : - use a task for iterating through the fileset. - try a to add a "+" before your filename, set addsourcefile to false, and use Hope this helps, Nicolas Alan Moss wrote: I have an issue WRT the apply task. I need it to be much more fle

Re: Apply task argument issues...

2005-09-26 Thread Alan Moss
Oh yeah, the reason the current ANT way of executing this causes a space to be inserted in-between the + and the filename. This, in turn, causes util.exe to fail. > > > > > - To unsubscribe, e-ma

Apply task argument issues...

2005-09-26 Thread Alan Moss
I have an issue WRT the apply task. I need it to be much more flexible than the documentation states it is. Let's say I'm using a tool that has odd command line options like this: util.exe [options] +|- where options is optional and you must specify + or - Given the curr

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 Dick, Brian E.
Sometimes the commandline arguments are a bit tricky. Try the following. -Original Message- From: Jakob Fix [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 4:36 AM To: Ant Users List Subject: Re: problem with apply task

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 this: > > > > > >The commandline for the composite

Re: problem with apply task

2005-09-23 Thread Antoine Levy-Lambert
Jakob Fix wrote: >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/hsc-c0311d.png >> >> >

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/

Re: apply task appends source even when not specified?

2004-10-29 Thread Matt Benson
--- Todd Wells <[EMAIL PROTECTED]> wrote: > I've been wrestling with the apply task and trying > to figure out why > this behavior is exhibited and how I can prevent it. Todd: Since Ant 1.6, has had a new attribute "addsourcefile" that you can set to "false&

apply task appends source even when not specified?

2004-10-29 Thread Todd Wells
I've been wrestling with the apply task and trying to figure out why this behavior is exhibited and how I can prevent it. The task: [using ant 1.5.1] There are a bunch of zip files

Re: mapper and apply task

2004-04-02 Thread Matt Benson
= new StringBuffer("/out:").append( result[targetFilePos.getPosition()]).toString(); } return result; } HTH, Matt --- "Mckenna, Rob" <[EMAIL PROTECTED]> wrote: > Hi > I'm using a mapper with targetfile to specify the > output names in an apply task, but

mapper and apply task

2004-04-02 Thread Mckenna, Rob
Hi I'm using a mapper with targetfile to specify the output names in an apply task, but the executable is not recognizing . The task and output. Any thoughts on what I'm doing wrong? The task and output is below. R

apply task

2004-01-14 Thread Vijay Prasanna
I'm trying to execute a simple DOS command thru ANT 'apply' task, say, C:\rename abc.txt test.txt, my ant script is but the ant gives an error, :no filesets specified. then change