Just checking if I am still subscribed to this list.

2005-02-21 Thread Nat Gross
I haven't received anything on this list since the 18th. Just checking... -nat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: How can I set last modified date in html files using ant?

2005-02-10 Thread Nat Gross
Thank you, both. -nat Peter Reilly wrote: Personally I find beanshell to be easier to use than javascript (or the other scripting languages) as it's sytax is *very* close to java. import java.io.File; f = new File(filename); project.setProperty("date", "" + f.lastModified());

Re: AW: How can I set last modified date in html files using ant?

2005-02-09 Thread Nat Gross
[EMAIL PROTECTED] wrote: Hhmm - not easy ... 1) "iterate" over a fileset 2) check the date for each time 3) modify the files content hmm - maybe (pseudo code): 01: 02: 03: 04: 05: importClass(Package.java.io.File); 06: f = new File("@{file}"); 07:

Re: XML and copy directories

2005-02-04 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] One minute... ALL (ok, almost) of us, using Ant know Java! Ant was designed mainly for programmers. There is tons of stuff Ant will automate, that will take you much longer to write in Java. It's worth spendin

Re: XML and copy directories

2005-02-04 Thread Nat Gross
Henning Waack wrote: Hello James and Ninju. James Fuller wrote: Ninju Bohra wrote: Well, The safe answer is yes and no... btw you could just load up an xml file using which does give you access to value encapsulated by elements and attributes...additionally there are a few existing 3rd party X

Re: Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Jacob Kjome wrote: At 08:50 PM 2/3/2005 -0500, you wrote: >Hi; >On an imported file, I would like to run a target upon getting imported. >Although the imported's target can be run for the file importing it, I >would like to have a target in the imported file run automatically upon >being imported.

Re: Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Jacob Kjome wrote: At 08:50 PM 2/3/2005 -0500, you wrote: >Hi; >On an imported file, I would like to run a target upon getting imported. >Although the imported's target can be run for the file importing it, I >would like to have a target in the imported file run automatically upon >being imported.

Import: auto run a target in the imported file.

2005-02-03 Thread Nat Gross
Hi; On an imported file, I would like to run a target upon getting imported. Although the imported's target can be run for the file importing it, I would like to have a target in the imported file run automatically upon being imported. Is this possible? Thanks, -nat

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Matt Benson wrote: [SNIP] /> $${pleaseHelp}=${pleaseHelp} -Matt Aye, thanks much. It works 99%. It returns the correct path but it also includes a dir separator at the end. How do I drop t

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] This is what I want: -- If the from path = /a/b/c/d/e/f/e/ejb, ${pleaseHelp} should=/a/b/c/d/e If the from path = /a/ejb, ${pleaseHelp} should=/a Alas, in the aforementioned snippet,

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-03 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: [SNIP] Can the location attribute take a wildcard for an unknown number of dir elements leading to one known last element? -nat Nat, it sou

Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-02 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: I have tried various methods to achieve this simple task, to no avail. In different projects I have various number of dirs, but all have one branch with the last dir = 'ejb'. I might have ${srcRoot}/a/b/c/ejb or ${src

A dirset,path,fileset...anything that returns ${myPath}/**/ejb

2005-02-02 Thread Nat Gross
I have tried various methods to achieve this simple task, to no avail. In different projects I have various number of dirs, but all have one branch with the last dir = 'ejb'. I might have ${srcRoot}/a/b/c/ejb or ${srcRoot}/a/ejb, etc, I want a refid that returns that complete path to stuff into a

Re: Basic regex questions.

2005-01-31 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Hi; I am just coming up to speed on Regex and have a couple of questions, please. 1. Is there a difference between a) [a-cx-z] and b)[a-c[x-z]] ? If so, what? If not, which syntax is better to use? I don't know, b

Basic regex questions.

2005-01-31 Thread Nat Gross
Hi; I am just coming up to speed on Regex and have a couple of questions, please. 1. Is there a difference between a) [a-cx-z] and b)[a-c[x-z]] ? If so, what? If not, which syntax is better to use? 2. How do I uppercase (or lowercase) a character in a string? (Need to do this in Ant, so the Java

Re: regexp question

2005-01-30 Thread Nat Gross
Rebhan, Gilbert wrote: Hi, scenario = a txtfile where i have to put a value in. The line where that value should go is always line number 26 of that file. line number 26 is always blank and should contain the value after transformation. I've tried with :

Re: Echo: How to include a \t.

2005-01-30 Thread Nat Gross
[EMAIL PROTECTED] wrote: From: Nat Gross [mailto:[EMAIL PROTECTED] Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Hi; How can I embed a \t within an echo string? I tried to console and file, with and without message attribute, to no avail. I believe this

Re: Echo: How to include a \t.

2005-01-27 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Hi; How can I embed a \t within an echo string? I tried to console and file, with and without message attribute, to no avail. I believe this is an XML thing. You might find an XML parser that would preserve a hard tab cha

Echo: How to include a \t.

2005-01-27 Thread Nat Gross
Hi; How can I embed a \t within an echo string? I tried to console and file, with and without message attribute, to no avail. Thanks, -nat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: list from text file?

2005-01-27 Thread Nat Gross
Thanks, it works great. -nat Matt Benson wrote: (um, he wrote quite a bit!) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: list from text file?

2005-01-27 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: ? How is that? I don't have a property style file to load. DD didn't mean loadproperties, he meant loadfile. Oh. ok. [scurrying off to explore loadfile.] Say I have a 'myFile.txt" as follows. --

Re: list from text file?

2005-01-27 Thread Nat Gross
Dominique Devienne wrote: From: Nat Gross [mailto:[EMAIL PROTECTED] Hi; In a loop, instead of "list=a,b,c,d,", I would like to get a,b,c,d from a text file, with each element on its own line. (Something like list=file:myFile.txt.) Can it be done? Yes. Simply load the f

list from text file?

2005-01-27 Thread Nat Gross
Hi; In a loop, instead of "list=a,b,c,d,", I would like to get a,b,c,d from a text file, with each element on its own line. (Something like list=file:myFile.txt.) Can it be done? Thanks -nat - To unsubscribe, e-mail: [EMAIL PROT

Re: AW: Last element of current directory name.

2005-01-27 Thread Nat Gross
ges as well, python, groovy, bsh, ... it has to be supported by then BeanScriptingFramework. Jan -Ursprüngliche Nachricht- Von: Nat Gross [mailto:[EMAIL PROTECTED] Gesendet am: Mittwoch, 26. Januar 2005 16:44 An: Ant Users List Betreff: Re: AW: Last element of current directory name

Re: AW: Last element of current directory name.

2005-01-26 Thread Nat Gross
Hey! I didn't know you can use Javascript in Ant, (not that I know Javascript well, but still..) it's cool. Thanks -nat ps. oh, thats what Matt meant by 'using a script'. [EMAIL PROTECTED] wrote: The upcase part can be done with

Re: Last element of current directory name.

2005-01-25 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: How do I get just the last element of the current directory. Suppose basedir = dira/dirb/dirc. (Or any path for that matter.) Whatever is "the current directory"--${user.dir}? ${basedir}?... You can use the base

Last element of current directory name.

2005-01-25 Thread Nat Gross
How do I get just the last element of the current directory. Suppose basedir = dira/dirb/dirc. (Or any path for that matter.) I need a property to = "Dirc". (1st character uppercased, if possible.) For the pros out there it should be 123, but for me... forget it! Thanks -nat ---

Re: regex newbie. propertyregex help, please.

2005-01-24 Thread Nat Gross
Matt Benson wrote: propertyregex is an ant-contrib question, really, and Is there another list more appropriate for ant-contrib? you seem to be trying to use nested elements where propertyregex doesn't appear to want any, but you basically want to match "^(.*)Bean$" and replace with "\1". Ye

regex newbie. propertyregex help, please.

2005-01-24 Thread Nat Gross
Hi; To a regex newbie can someone please supply the pattern to strip off the word "Bean" from the string. In the following, assuming that property 'beanName' contains a string 'AnyBean', the new 'beanPrefix' property should be 'Any'. (By convention, the substring 'Bean' is always at the end of

Re: Cleaning a text file with tons of extra CRLF's

2005-01-20 Thread Nat Gross
Regards Ivan --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: If you use OS pipes, you will appreciate filterchains. -Original Message- From: Nat Gross [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:41 PM To: Ant Users List Subject: Re: Cleaning a text file wi

Re: Cleaning a text file with tons of extra CRLF's

2005-01-13 Thread Nat Gross
filterchains? I will need to catch up on that topic. Thanks for the tip. -nat Matt Benson wrote: Also, have you tried using filterchains? You can use the ignoreblank filter to remove blank lines. And it might look a little prettier. -Matt --- Nat Gross <[EMAIL PROTECTED]> wrote: Ok. Rel

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
mple and works, and achieves 99.9% of my goal. Here it is. Thank you; -nat Julius Davies wrote: Hi, Nat, I never would have thought of that! Really neat! Actually, " " is a CR, not 015. yours, Julius On Wed, 2005-01-12 at 21:25 -0500, Nat Gros

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
no extra whitespace! BEFORE: === this file seems to be double spaced except for the very last line. AFTER: === this file seems to be double spaced except for the very last line. yours, Julius On Wed, 2005-12-01 at 19:34 -0500, Nat Gross wrote: Hi; On Wi

Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
Hi; On Windows, I get a daily text file from another process that has tons of extra EOL's, which I manually delete with my editor. How can I use Ant's filter to copy the file and strip all duplicate eol's? The fixeol task does not cut it. It should have an option to remove the eol, or replace ev