Re: regexp recognition over a group of files

2006-09-16 Thread michael sorens
> > http://ant.apache.org/manual/CoreTypes/selectors.html#containsselect > > The above link describes what you are looking for. > > Regards, > > Antoine > Original-Nachricht > Datum: Sat, 16 Sep 2006 14:24:13 -0600 > Von: "Michael Sorens" <[EM

Re: regexp recognition over a group of files

2006-09-16 Thread Michael Sorens
mplify the pathconvert/echo: -i.e., pathconvert w/o a property sends result to the log; note also that the fileset can be specified directly rather than having to be nested into a path. HTH, Matt --- Michael Sorens <[EMAIL PROTECTED]> wrote: > I am looking to do a task that

regexp recognition over a group of files

2006-09-15 Thread Michael Sorens
I am looking to do a task that is simple with the unix find command, but I cannot quite seem to grok all the pieces in ant to do it: I want to generate a list of files where the contents of each file contain--or do not contain, at my option--a particular string matching a regular expression. I w

Re: fixing crlf without changing timestamp

2005-03-03 Thread michael sorens
I'm not familiar with applying ant patches, plus I don't have a strong need for the fixcrlf right now, so I'm going to have to postpone any trials for the time being... On Fri, 04 Mar 2005 00:35:58 +0900 (JST), Yuji Yamano <[EMAIL PROTECTED]> wrote: "michael sorens&q

fixing crlf without changing timestamp

2005-02-24 Thread michael sorens
Is it possible to run without changing a file's modification time? Or perhaps a way to use to restore the original modification time after the (on a group of files)? I actually want to run fixcrlf in conjunction with copy (which has the preservelastmodified attribute to retain the modificati

Re: manipulating property strings

2005-02-04 Thread michael sorens
Ahhh... thanks for that refinement; that handles what I need. On Wed, 2 Feb 2005 09:48:06 -0800 (PST), Matt Benson <[EMAIL PROTECTED]> wrote: --- michael sorens <[EMAIL PROTECTED]> wrote: With the pointer to the , I was able to rewrite the task to avoid a temp file. However, that

Re: manipulating property strings

2005-02-02 Thread michael sorens
On Mon, 31 Jan 2005 08:17:52 -0800 (PST), Matt Benson <[EMAIL PROTECTED]> wrote: --- michael sorens <[EMAIL PROTECTED]> wrote: Is there a way to manipulate the contents of a multi-line property string as if it were a file? Right now I

manipulating property strings

2005-01-29 Thread michael sorens
Is there a way to manipulate the contents of a multi-line property string as if it were a file? Right now I collect stderr of an exec to a temp-file (error="filename") then read the temp-file and manipulate via filterchain, storing into a property, as in: ...

Re: up-to-date-ness and cmd-line args

2005-01-27 Thread michael sorens
I'll check on that... in order to do that, however, how can I dump what is in the fileset (for debugging) ? And why do absolute paths not work? That seems like an odd restriction... On Thu, 27 Jan 2005 16:27:53 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote: From: michael sor

Re: up-to-date-ness and cmd-line args

2005-01-27 Thread michael sorens
I had an open question on this issue several days ago for which no one has taken up the gauntlet. To make it very brief, I want to use a set of files in two places: inside an checker, and as s to a task. The build file fragment shown here works for the check, but the js.plain.files property c

Re: Last element of current directory name.

2005-01-27 Thread michael sorens
I tried your JavaScript example; after adding bsf.jar and js.jar to my ant/lib directory, I still had this runtime error: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine; This was the piece of JavaScript in question:

Re: accessing the verbose state

2005-01-26 Thread michael sorens
, 26 Jan 2005 14:54:01 -0800 (PST), Matt Benson <[EMAIL PROTECTED]> wrote: --- michael sorens <[EMAIL PROTECTED]> wrote: Thank you, Matt, for such a prompt answer to (2) and (4). Anyone else have any thoughts on (1) and (3)? Matt implies "can't be done"... To elaborate fu

Re: accessing the verbose state

2005-01-26 Thread michael sorens
Thank you, Matt, for such a prompt answer to (2) and (4). Anyone else have any thoughts on (1) and (3)? Matt implies "can't be done"... On Wed, 26 Jan 2005 13:45:15 -0800 (PST), Matt Benson <[EMAIL PROTECTED]> wrote: --- michael sorens <[EMAIL PROTECTED]> wrote: Fro

accessing the verbose state

2005-01-26 Thread michael sorens
From the command line, one may use -v to get more verbose output. How is this verbose-state accessed... (1) ...from within the build file (i.e. ant property presumably) ? (2) ...from within a custom task ? (3) ...from within a generic Java class, if possible ? (4) Are there guidelines for what cons

Re: AW: ant access of java constants

2005-01-25 Thread michael sorens
.). Erik On Jan 24, 2005, at 9:09 PM, michael sorens wrote: Yes, my constants are "public static final". The problem, I found, is that the definition of VERSION is a method evaluation, not a compile-time constant, as you had tried. So that answers that question. The remaining issue

Re: AW: ant access of java constants

2005-01-24 Thread michael sorens
On Jan 24, 2005, at 11:05 AM, michael sorens wrote: (1) Well I tried adding bcel.jar to my ant/lib directory but it made no difference. What did make a difference was my choice of .class file to load. Instead of my Diagnostic.class I tried a simpler Version.class and then I received no error, eve

Re: up-to-date-ness and cmd-line args

2005-01-24 Thread michael sorens
I actually need to use a separate task from my task (because of the mapping I do in the elements below). So going with the suggested fileset/pathconvert idea, I created three s...

Re: up-to-date-ness and cmd-line args

2005-01-24 Thread michael sorens
t; not for "apply". Now that you've shown me where to find the manual page, that does help. On Mon, 24 Jan 2005 10:03:32 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote: From: michael sorens [mailto:[EMAIL PROTECTED] The only reference I find to "" is in "req

Re: AW: ant access of java constants

2005-01-24 Thread michael sorens
e of a property from a class file? On Fri, 21 Jan 2005 15:16:34 -0500, Erik Hatcher <[EMAIL PROTECTED]> wrote: You need BCEL. See here for details: http://ant.apache.org/manual/install.html On Jan 21, 2005, at 1:48 PM, michael sorens wrote: The errors I showed are from -debu

Re: up-to-date-ness and cmd-line args

2005-01-24 Thread michael sorens
e, here's my example: On Mon, 24 Jan 2005 09:37:55 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote: From

up-to-date-ness and cmd-line args

2005-01-23 Thread michael sorens
I want to run a java task with a specific list of file names as command-line arguments (typically for each file), but I also want to run a check with a fileset that is precisely the same list of files. How can this be done without having to enumerate the same list in two places? --

Re: AW: ant access of java constants

2005-01-21 Thread michael sorens
? - is ${javabin} set? Jan -Ursprüngliche Nachricht- Von: michael sorens [mailto:[EMAIL PROTECTED] Gesendet am: Freitag, 21. Januar 2005 17:45 An: Ant Users List Betreff: Re: ant access of java constants I tried adding this chunk of code: but received this error: C:\usr\

Re: ant access of java constants

2005-01-21 Thread michael sorens
ewProperty("out", MyClass.TEXT); OUTPUT: ${out} $ ant -lib . Jan -Ursprüngliche Nachricht- Von: michael sorens [mailto:[EMAIL PROTECTED] Gesendet am: Freitag, 21. Januar 2005 02:24 An: user@ant.apache.org Betreff: ant access of java constants Is it possible to set

ant access of java constants

2005-01-20 Thread michael sorens
Is it possible to set an ant property to a value that is a static constant from a Java class file? Example: public class Stuff { . . . static final int FOOBAR=42; . . . } Access with something like this...? Or more generally, could one set a property to the value of a stat