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]
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());
[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:
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
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
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.
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.
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
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
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,
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
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
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
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
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
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 :
[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
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
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
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]
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.
--
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
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
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
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
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
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
---
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
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
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
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
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
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
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
34 matches
Mail list logo