Re: directed exit of ant build?

2005-06-27 Thread Mark Lundquist
On Jun 27, 2005, at 2:05 PM, Ninju Bohra wrote: How about the task Perfect! :-)... thx Ninju (et al :-) —ml—

directed exit of ant build?

2005-06-27 Thread Mark Lundquist
Hi all, Is it possible for a target to script the termination of the build? I want something like this: any way to do this? (sorry if it's a FAQ :-/) thx, —ml—

Re: import Tidy jar, path to jar

2005-05-27 Thread Mark Lundquist
On May 27, 2005, at 4:40 PM, THUFIR HAWAT wrote: yes? No. —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: import Tidy jar, path to jar

2005-05-27 Thread Mark Lundquist
On May 27, 2005, at 9:38 AM, THUFIR HAWAT wrote: On 5/25/05, Mark Lundquist <[EMAIL PROTECTED]> wrote: Hi all, ... So "org.w3c.tidy.Tidy" has absolutely nothing to do with where Tidy.jar lives. It has everything to do with what you see when you do "jar tf Tidy.jar&q

Re: Antcall Vs. macrodef

2005-05-25 Thread Mark Lundquist
On May 25, 2005, at 8:24 AM, [EMAIL PROTECTED] wrote: I am writing a common build script for 2 departments that build similar products but have some slightly different requirements in terms of build structure. My plan was to have modular independent functions so that the common functionalit

Re: import Tidy jar, path to jar

2005-05-25 Thread Mark Lundquist
On May 25, 2005, at 8:05 AM, THUFIR HAWAT wrote: heh, I have copied Tidy.jar to many locations. the "primary" location is /home/thufir/java/lib/Tidy.jar, oh, d'oh... that was in your previous email, I just missed it... it's also at /home/thufir/java/src/org/w3c/tidy/Tidy.jar and home/thuf

Re: import Tidy jar, path to jar

2005-05-25 Thread Mark Lundquist
On May 24, 2005, at 11:15 AM, THUFIR HAWAT wrote: I can't pin down why I think this, but I believe there's a mismatch between where the build file says to find Tidy.jar and its actual location. What is it's actual location? —ml— --

Re: import Tidy jar, path to jar

2005-05-24 Thread Mark Lundquist
Hi TH, okay... On May 24, 2005, at 7:58 AM, THUFIR HAWAT wrote: I'm not sure how to approach this error, any pointers would be appreciated. <..snip> [javac] /home/thufir/java/src/atreides/tidyXhtml/Test16.java:9: package org.w3c.tidy does not exist <..snip>

Re: path to ant

2005-05-18 Thread Mark Lundquist
On May 18, 2005, at 8:17 PM, THUFIR HAWAT wrote: where else could ant be? type which ant That might give a clue... What platform are you running on? —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: target dependencies

2005-05-06 Thread Mark Lundquist
On May 6, 2005, at 8:41 PM, Laurie Harper wrote: I was only expecting 'init' to be run once... that's the way I remember things working. Am I doing something wrong, or is Ant? You're not doing anything wrong... you're just remembering wrong :-) The way it's working is the way it works. cheers, —ml

Re: Quotations in a property get corrupted when passed as an arg

2005-04-13 Thread Mark Lundquist
On Apr 13, 2005, at 4:49 PM, Conor MacNeill wrote: Yes, easy in Unix. Can you do the same in Windows? You probably can, somehow. Well sure, of course. Um... a... :-) Touché! cheers, —ml— P.S.: Actually, we can do the same in Windows: http://cygwin.com Is that cheating? :-) :-)

Re: Quotations in a property get corrupted when passed as an arg

2005-04-13 Thread Mark Lundquist
On Apr 13, 2005, at 7:18 AM, Conor MacNeill wrote: There is not much Ant can do here - there is no real way for it to pass an argument that has quotes and spaces. How do you even do that yourself at the command line? Huh?! That's not even a problem... echo \"foo\" ls 'foo bar' — 

Re: Exiting ant TARGET without aborting build

2005-03-17 Thread Mark Lundquist
On Mar 17, 2005, at 10:04 AM, Michael Pelz Sherman wrote: I'd like to be able to do something like this: (condition check here) (do more-tasks...) There's a general pattern that may be in play here... whenever you have a target that's starting to look li

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 10:12 AM, Radha Sangal wrote: It never found/matched that expression in the string. Can anyone please share a piece of code, where a regular expression matches what it should and gives back the string. Why don't you post your code, and then maybe someone can point out what is w

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:57 AM, Mark Lundquist wrote: Oh yeah, d'oh... my r.e. was wrong, it wants an extra comma :-(... however I think you do need either a '+' or a '?' after the '{3}', right? Ooop, no, you don't need it. OK, enough going off half-cocked

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:48 AM, [EMAIL PROTECTED] wrote: Quoting Radha Sangal <[EMAIL PROTECTED]>: Could someone help me build regular expression for a string like this 1,6,3,2. I am getting error if I write it like this String patternStr = "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )"; wouldn't this wo

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:38 AM, Radha Sangal wrote: Could someone help me build regular expression for a string like this 1,6,3,2. I am getting error if I write it like this String patternStr = "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )" well yeah :-)... the above is not a valid string literal. Look a

Re: Conditionals

2005-02-28 Thread Mark Lundquist
Hi Frank, On Feb 28, 2005, at 9:56 AM, Frank W. Zammetti wrote: This might be the last Ant question I ever have to ask (now, where is the deed to that bridge in Brooklyn?!?)... Is it possible, and if so how, to do conditionals? I'd like to have a way basically on each task to say "if property A

Re: Symlink badness. . .

2005-02-23 Thread Mark Lundquist
On Feb 23, 2005, at 7:54 AM, Edward Ciramella wrote: What I'm trying to do is create a symlink to a directory which may/may not exist in the current branch. So if the child branch doesn't have a particular folder, create a symlink to it prior to starting the build. It's possible for the child br

Re: tar task keeps reporting nothing to do

2005-02-20 Thread Mark Lundquist
On Feb 20, 2005, at 9:27 AM, Paul Taylor wrote: Paul Taylor wrote: I am trying trying to build to do two slightly different builds from the same source code into two different directories, build and buildwithlicense. Then for each directory I tar up the results, the first one works ok but the se

Re: How to?: add target dependencies

2005-02-12 Thread Mark Lundquist
On Feb 11, 2005, at 10:01 AM, Matt Benson wrote: I don't know what version of ant-contrib you are using, but later versions include the for task which is a hybrid of foreach and macrodef, whose chief benefit is that it avoids the incursion of an entirely new project context, unlike foreach. Transl

Re: How to?: add target dependencies

2005-02-12 Thread Mark Lundquist
Hey Alan, good to hear from you! On Feb 11, 2005, at 5:57 PM, Alan Gutierrez wrote: Mark I'm now using XSLT to generate my Ant files. Any place where there is iteration, or any sort of logic, XSLT makes it simple and straghtforward. I know you work with XSLT, so I'm going to enc

Re: Parsing file. It works but...

2005-02-11 Thread Mark Lundquist
On Feb 11, 2005, at 12:49 PM, I wrote: Yeah, I can simplify it to one line of shell: sed -e 's/^\([^ ]*\)$/\1 \1/' < the-file | another-program D'oh, I just realized you might be on Winblows... I guess if I were on raw Winblows (i.e. not using Cygwin)... then I guess I would write a Perl script.

Re: Parsing file. It works but...

2005-02-11 Thread Mark Lundquist
On Feb 11, 2005, at 12:24 PM, Dick, Brian E. wrote: ...there has to be a better way to do this. I have a file that contains lines like the following. src1 trg1 src2 src3 trg3 I need to parse the file and send the two values in each line to another program. When there is only one value on the line,

Re: How to?: add target dependencies

2005-02-11 Thread Mark Lundquist
On Feb 10, 2005, at 12:01 PM, Dominique Devienne wrote: (b) create a task for each module (e.g., "modules:killer-app") that calls in the module subdirectory and also does some other stuff; You mean create a target, right!? yes, which I was thinking is "create a task" in the same sense that is sa

Re: How to?: add target dependencies

2005-02-11 Thread Mark Lundquist
On Feb 10, 2005, at 11:41 AM, Matt Benson wrote: Looks like your main question is how to accumulate, then iterate, over these modules. Pretty much, except for two things: 1) Stylistically, I'd prefer to that the iteration be implicit rather than explicit, i.e. a declarative style... 2) I'd like t

How to?: add target dependencies

2005-02-10 Thread Mark Lundquist
Hi, I've been using ant for some time, but I'm no expert. I just joined this list. And here's my question! :-) Actually, I can't even think how to phrase this question in any more general terms :-)... so I'll just describe specifically what I'm trying to accomplish (part of it will only make