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
>
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
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:
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:
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
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
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
--- "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
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
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
>
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
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
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
--- "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
Hello All,
I'm using "apply" task to compile my actuate reports using the f
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
>> 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
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
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
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
>> 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
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
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'
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
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
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
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
> 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
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.
>
>
>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):
>
< 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
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
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
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
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
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
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
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
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.
>
>
>
>
>
>
>
>
>
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
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
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
>>
>>
>
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/
--- 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&
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
= 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
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
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
48 matches
Mail list logo