If I change the macrodef to:
Then it works fine...
From: E
OK, I'm totally lost. I've been running this script over and over all day
trying to debug a later part in it that I've taken out. There have been no
problems with this part. All of a sudden, it gets like 30 directories in and
crashes! If I remove the call to the macrodef , it runs
fast and
The only way I could figure to do it is to put both into a property. Why it's
acceptable to have \'s in properties escapes me. Once you do the getProperty
on it, it's a string, but works. It has to have something to do with how Ant
handles "attribute". Thanks for all the help Scot!
This is just plain silly. It looks like it's fine if a property has \'s in it,
but not strings:
How do you say in JavaScript, treat the following string as a literal string?
In C# you can escape out the characters one at a time the same way as you do in
JavaScript:
string myString = "C:\\Program Files\\JavaScript\\is\\goofy";
or you can tell it that the entire string is literal with an @
Thanks Kent for the quick reply. That is basically what I was looking for.
Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries
-Original Message-
From: Moore, Kent [mailto:kent.mo...@fnis.com]
Sent: Thursday, January 21, 2010 10:07 AM
To: Ant Users List
Subject: RE: Timest
Interesting... OK :(
On Thu, 21 Jan 2010, Eric Fetzer wrote:
Same as tmpProp on the other side:
main:
[echo] myProp is: C:\noDog\Hates\Big\Juicy\Bones
[echo] tmpProp is: C:\noDog\Hates\Big\Juicy\Bones
From: Scot P. Floess
To: Ant Users List
Se
Let ant calculate the duration of the target for you -
http://ant-contrib.sourceforge.net/tasks/tasks/performance_monitor.html
SKent
x8014
-Original Message-
From: Mario Madunic [mailto:mario_madu...@newflyer.com]
Sent: Thursday, January 21, 2010 11:00 AM
To: Ant Users List
Su
(using ANT 1.7 on Windows XP sp3)
I like to get the timestamp before a task is executed, and one when the task is
finished, and then calculate the difference to get the duration of the task?
I’d like to do this so I can see how long certain tasks take to run.
I see that I can create a timestamp
Same as tmpProp on the other side:
main:
[echo] myProp is: C:\noDog\Hates\Big\Juicy\Bones
[echo] tmpProp is: C:\noDog\Hates\Big\Juicy\Bones
From: Scot P. Floess
To: Ant Users List
Sent: Thu, January 21, 2010 8:48:29 AM
Subject: Re: AppendToPropert
Wondering over toward which I haven't used before. I saw
in there and can't see it described anywhere in the doc. Can someone give me a
reference?
Thanks,
Eric
From: Eric Fetzer
To: Ant Users List
Sent: Thu, January 21, 2010 8:38:41 AM
Subject: Re: Appe
Will you echo ${myProp} itself? For example before the first
propertyregex...
Sorry, I don't have time right this minute to look at this and type in the
example :)
On Thu, 21 Jan 2010, Eric Fetzer wrote:
And to leverage your \n example:
And to leverage your \n example:
Produces:
main:
[echo] tmpProp is: C:\noDog\Hates\Big\Juicy\Bones
[echo] tmpProp is: C:\\noDog\\Hates\\Big\\Juicy\\Bones
[echo] tmpProp is: C:\noDog\\Hates\Big\\Juicy\Bones
BUILD FAILED
java.ut
Let me give you a better example Scot. Substitution seems to ignore escape
characters entirely. As the task is written now, I don't imagine there is a
way to replace \'s.
Produces:
main:
[echo] tmpProp is: C:\myDog\Loves\Big\Juicy\Bon
I might be wrong but I think the output you are seeing is correct - as in
the \ is escapeed thereby printing only 1 \ not 2... For example if you
consider \n it is emitted as a newline...but if you do \\n the output will
be a literal \n (as in a backslash followed by the letter n)... Try
pr
Yeah, that's what I did. The small repro just shows that it doesn't affect the
string with the \'s whatsoever... If there were actual instances of \\ in
there maybe it would do something, but there are only \'s. Seems like for the
saving down of the property, it uses escape characters, but fo
OK, so in looking more closely, what I meant to say was to do the
initially afterward using the first :)
If I get a free moment today I'll see if I can get it to work... Little
busy at the moment - maybe at lunch today :)
On Wed, 20 Jan 2010, Scot P. Floess wrote:
Yeah, I'll give it som
I am using shellscript task of ant-contrib in one of my target, which looks
like this:
KAR=`echo ${adapter-active-directory} | awk -F. '{print $1}'`
MAR=`echo ${adapter-active-directory} | awk -F. '{print $4}'`
I have two problems here:
1. Above
18 matches
Mail list logo