run script after ant finished

2009-06-23 Thread Shawn Castrianni
Is there a way to run something after ANT has finished with log output? I am trying to implement an auto-update feature of my ant scripts. They are in a SVN sandbox that all my users checkout. I would like the ANT scripts to check if the user's sandbox is up to date and run svn update if not.

Using regular expressions to select files when using ant copy task

2009-06-23 Thread Jack Blan
Hi, I have 'src' folder and a 'dest' folder. The 'src' folder has the following files: 1) ans_key.tif 2) arrow.tif 3) eqn_y=x+1.tif 4) re teach.tif 5) ab+cd.tif I want to copy all files that conform to a naming convention to 'dest' folder. The rules are simple: only allowed characters in file

Re: factoring out commonality in sequences of tasks

2009-06-23 Thread jscripter
David Weintraub wrote: > > There are several things you can use: > ... > Thanks for pointing out defmacro and antcall. Looks like they could help me out with this problem. ER -- View this message in context: http://www.nabble.com/factoring-out-commonality-in-sequences-of-tasks-tp24155135

Re: Sorting file name

2009-06-23 Thread David Weintraub
Well, there is the

Re: factoring out commonality in sequences of tasks

2009-06-23 Thread David Weintraub
There are several things you can use: One is the command. If is actually composed of multiple tasks, then the Macro function might be the way to go. The other is to look into the AntContrib package and use the tasks in the antCon

Re: Problem Reusing Condition API

2009-06-23 Thread Dominique Devienne
On Tue, Jun 23, 2009 at 7:55 AM, Mithun Gonsalvez wrote: > public class TestCheck extends MacroDef { Why derive from MacroDef rather than simply Task? >    public static class MySingleArgument { > >        List conditions = new ArrayList(); > >        public void addConfiguredCondition(Condition

Problem Reusing Condition API

2009-06-23 Thread Mithun Gonsalvez
Hi All, I have a small problem (hopefully): I am trying to extend MacroDef to aggregate certain arguments depending upon conditions. *Ant-File:* *Extension