regex text out of a file

2007-07-18 Thread Alex Egg
I need help with this task: I have an HTML file with this snippet: I would like to get each the src attribute value of each script tag, e.g. "scripts/script1.js, scripts/script2.js, scripts/script3.js " After I extract the scripts I would like to be able to pass them another ant task in my

RE: Simple if/else Condition

2007-07-18 Thread James Oltmans
A simpler way is to do the following: OR if using it inside of or : One note, but this might not work too well on older ant versions. was added as a condition in ant 1.6.3 and I have had some issues with 1.6.5. Hope that helps. James -Original Messa

Re: Execution of windows command in ant's build.xml

2007-07-18 Thread Dominique Devienne
On 7/18/07, Alec Fernandez <[EMAIL PROTECTED]> wrote: Excellent clarifications gentleman, many thanks. You got me curious so I dug up a working example of quoting that I use. Try as I may, I can't seem to escape from the msdos command line processor. Bill's enduring gift to humanity. At le

RE: Execution of windows command in ant's build.xml

2007-07-18 Thread Alec Fernandez
Excellent clarifications gentleman, many thanks. You got me curious so I dug up a working example of quoting that I use. Try as I may, I can't seem to escape from the msdos command line processor. Bill's enduring gift to humanity.

Re: Execution of windows command in ant's build.xml

2007-07-18 Thread Peter Reilly
On 7/18/07, Jack J. Woehr <[EMAIL PROTECTED]> wrote: On Jul 18, 2007, at 9:55 AM, Peter Reilly wrote: > > Remember that a lot of directories have spaces in windows > and this, combined with the multiple layers of quoting and > interpretation > (ant, Java, cmd and the other commands) > mean that

Re: Execution of windows command in ant's build.xml

2007-07-18 Thread Jack J. Woehr
On Jul 18, 2007, at 9:55 AM, Peter Reilly wrote: Remember that a lot of directories have spaces in windows and this, combined with the multiple layers of quoting and interpretation (ant, Java, cmd and the other commands) mean that things may not work as expected. Entreprerneurial opportunity

Re: Execution of windows command in ant's build.xml

2007-07-18 Thread Peter Reilly
Do not forget that ant in written in java and the exec argument uses Process - the Process code is given the command line as a string, and adds (in c) in it's own quoting characters. Always one should play around with simple ant scripts to try to see what will work for the call. Remember that a

RE: Execution of windows command in ant's build.xml

2007-07-18 Thread Alec Fernandez
Howdy folks, This from the exec doc: I would recommend that you read the dos "man" pages on cmd start and call, they are quite useful. Pay close attention to the /c /k and /s options if you are passing multiple commands and quotes are necessary. Cmd /? Yields a wealth of

Re: Simple if/else Condition

2007-07-18 Thread David Weintraub
That's what I get for answering mail past midnight after my brain goes to sleep. I mean "target" and not "task". Hmmm. How to tell whether a directory is empty... You could do this: Then, the answer will be yes. No good. I haven't tried this, but it might work: 1). Create a Path that conta

Re: Simple if/else Condition

2007-07-18 Thread Evan J
Thank you Qazwart, except that we don't have `task' task but rather `target' for antcall. Either way, it should get the job done. Now I have to figure out to see how I can check whether a directory (and its subdirectories) are empty -- Length doesn't help. On 7/18/07, Qazwart <[EMAIL PROTECTED]>

Re: Execution of windows command in ant's build.xml

2007-07-18 Thread cuillandre frederic
check out this http://ant.apache.org/manual/CoreTasks/exec.html > Hi All, > > Need to execute windows 'cls' command in the Ant's build.xml file. > > Can somebody please help. > > Regards > Irfan. > > Frederic Cuillandre + 33 176616524 + 33 661948720 [EMAIL PROTECTED] www.airweb.fr

Execution of windows command in ant's build.xml

2007-07-18 Thread Sayed, Irfan (Irfan)
Hi All, Need to execute windows 'cls' command in the Ant's build.xml file. Can somebody please help. Regards Irfan.

AW: AW: Is project Antidote still alive?

2007-07-18 Thread Jan.Materne
Thanks for pointing out. That page is no longer a part of the manual. The page online should be deleted. I removed some notes to Antidote. Not sure about to delete the online-page ... Jan >-Ursprüngliche Nachricht- >Von: Jérôme Warnier [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 18

Re: AW: Is project Antidote still alive?

2007-07-18 Thread Jérôme Warnier
[EMAIL PROTECTED] wrote: Antidote is retired since March 2005. http://marc.info/?l=ant-dev&m=111208322503443&w=2 Where are these broken links? All links in "Getting Involved" on http://ant.apache.org/manual/Integration/Antidote.html Jan -Ursprüngliche Nachricht- Von: Jérôme Warnie

Ant appends files to classpath

2007-07-18 Thread Yura Phink
Hi, I've got a problem where Ant appends to a classpath of javac target some jars that I'm not interested they would appear there. This is a javac target: However the final classpath contains also the following libraries in the ending of a list: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jr