Re: Sorting file name

2009-06-24 Thread Scot P. Floess
If anyone is interested, I expanded upon my earlier example: The above will work in scenarios such as: 1.sql, 10.sql, 011.sql, 02.sql Just use "0" for the pad attribute... On Wed, 24 Jun 2009,

RE: run script after ant finished

2009-06-24 Thread Shawn Castrianni
Correct, I need something after the ANT VM has exited. Dominique, I do ask the user if he/she wants to perform the update before either continuing or ending the build and transparently updating. By the way, here is another example to have a task for ending an ANT build early WITHOUT using the

Re: Using regular expressions to select files when using ant copy task

2009-06-24 Thread David Weintraub
I've played around with this, and containsregexp does select files based upon content and not the name of the file. There might be a way around this by using the . Unfortunately, I don't know JavaScript or Apache BSF well enough to figure out how this might work. Does anyone know Javascript well e

Re: run script after ant finished

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 10:39 AM, Shawn Castrianni wrote: > This online presentation is hanging after slide 2.  Can I get this > information some other way or can I download the presentation locally? Worked for me (in FireFox). But a Listener or a Logger are part of the Ant VM, so it doesn't you

RE: run script after ant finished

2009-06-24 Thread Shawn Castrianni
This online presentation is hanging after slide 2. Can I get this information some other way or can I download the presentation locally? --- Shawn Castrianni -Original Message- From: Rebhan, Gilbert [mailto:gilbert.reb...@huk-coburg.de] Sent: Wednesday, June 24, 2009 2:13 AM To: 'Ant U

RE: Using foreach

2009-06-24 Thread Rebhan, Gilbert
-Original Message- From: Matt Benson [mailto:gudnabr...@yahoo.com] Sent: Wednesday, June 24, 2009 2:57 PM To: Ant Users List Subject: RE: Using foreach /* Not to rain on the proverbial parade, but you don't need iteration or third-party tasks to do this: HTH, Matt P.S. You

newlines in property from -D argument

2009-06-24 Thread andrewdanger
i am running ant from a bash script. i have a variable that contains command output, including newlines. when i try to pass the variable to ant like ant -Dbuild.log="${BUILD_LOG}" newlines aren't preserved in the build.log property. do i need to massage the output before i give it to ant as a pr

Re: Problem Reusing Condition API

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 5:46 AM, Mithun Gonsalvez wrote: >> This adds a nested tag, while you add a one. >> You need to have an add() method instead. I don't recall the exact rules >> though. >  The tag when evaluated to true, will set a property [which i > want to avoid] >  Instead i would lik

Re: Confused at build error

2009-06-24 Thread Dominique Devienne
On Wed, Jun 24, 2009 at 2:40 AM, dori wrote: > Hello, i have a small ant build file that i wrote a little while ago, it's > always worked fine but now it has started to give me errors. With the -debug > arg i get > > [javac]Compiling 2 source files > > [javac]     sourcefile1.java >    [javac]

Re: Sorting file name

2009-06-24 Thread Scot P. Floess
Here is a snippet beanshell that can do the work for you: I tested and it definitely works :) To run, I did this: The directory /home/sfloess/testdir contains the files: 10.sql 11.sql 1.sql 2.sql The results w

RE: Using foreach

2009-06-24 Thread Matt Benson
Not to rain on the proverbial parade, but you don't need iteration or third-party tasks to do this: HTH, Matt P.S. You also didn't need to wrap your fileset in a path on your iteration-based example. --- On Wed, 6/24/09, nisse wrote: > From: nisse > Subject: RE: Using foreach > To

Re: Problem Reusing Condition API

2009-06-24 Thread Mithun Gonsalvez
Hi Dominique, Thank You for the reply. > Why derive from MacroDef rather than simply Task? I want the functionality of MacroDef 'attribute' as well as sequence. Thought that this might be way by which I do not have to write everything :) > This adds a nested tag, while you add a one. > You n

ANT StarTeam Testers needed

2009-06-24 Thread Ballment, John
Hi, I've made some rather significant changes to the ANT StarTeam Check Out task and I'm looking for some users to test it. The changes I've made are for the following cases in BugZilla: 33507 - Need way to have files retrieved via the task be read-only 39926 - StarTeam tasks to identify

RE: Using foreach

2009-06-24 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:gilbert.reb...@huk-coburg.de] Sent: Wednesday, June 24, 2009 9:33 AM To: 'Ant Users List' Subject: RE: Using foreach -Original Message- From: nisse [mailto:nisse...@home.se] Sent: Wednesday, June 24, 2009 9:21 AM To: user@ant.ap

RE: Using foreach

2009-06-24 Thread nisse
Thanks! Works great! Rebhan, Gilbert wrote: > > > -Original Message- > From: nisse [mailto:nisse...@home.se] > Sent: Wednesday, June 24, 2009 9:21 AM > To: user@ant.apache.org > Subject: Using foreach > > /* > > [..] > > > This code prints for example "C:/Temp/MyFile.txt" > But I

Confused at build error

2009-06-24 Thread dori
Hello, i have a small ant build file that i wrote a little while ago, it's always worked fine but now it has started to give me errors. With the -debug arg i get [javac]Compiling 2 source files [javac] sourcefile1.java [javac]scorcefile2.java [javac] scorcefile3.java:5: pack

RE: Using foreach

2009-06-24 Thread Rebhan, Gilbert
-Original Message- From: nisse [mailto:nisse...@home.se] Sent: Wednesday, June 24, 2009 9:21 AM To: user@ant.apache.org Subject: Using foreach /* [..] This code prints for example "C:/Temp/MyFile.txt" But I only want it to print "MyFile.txt", how do I do that in a simple way?? */ us

Using foreach

2009-06-24 Thread nisse
Hi I'm trying get all files from a directory and print it to the screen. And I only want to print the name of the file, not with the path and filename. My code looks like this: This code prints for example "C:/Temp/MyFile.txt" But I only want it to pr

RE: run script after ant finished

2009-06-24 Thread Rebhan, Gilbert
-Original Message- From: Shawn Castrianni [mailto:shawn.castria...@halliburton.com] Sent: Wednesday, June 24, 2009 12:55 AM To: 'Ant Users List' Subject: run script after ant finished /* Is there a way to run something after ANT has finished with log output? [...] when it is complete.