Re: onsuccess or onfailure

2009-04-09 Thread Matt Benson
--- On Thu, 4/9/09, Eric Fetzer wrote: > From: Eric Fetzer > Subject: onsuccess or onfailure > To: "Ant Users" > Date: Thursday, April 9, 2009, 2:42 PM > Hi! I'm an ex-NAnt user coming over > to the Ant side. Most things are close to identical, but I > have a question about something I'm n

Re: Strip a dirname from a property that represents a path

2009-04-09 Thread Matt Benson
--- On Thu, 4/9/09, Eric Wood wrote: > From: Eric Wood > Subject: Strip a dirname from a property that represents a path > To: "Ant Users List" > Date: Thursday, April 9, 2009, 1:31 PM > I have a property that is a path > reference to a jar file and I want to > get the directory name for the

Re: fail task if subdirectories do not exist.

2009-04-09 Thread Matt Benson
Here's a cool example if I do say so myself: Wrap that macrodef up and take it wherever you like! HTH, Matt --- On Thu, 4/9/09, Lucas Albers wrote: >

fail task if subdirectories do not exist.

2009-04-09 Thread Lucas Albers
How can I a fail task for a directory resource count? I can see the syntax for failing if a file does not exists as part of a resource. I do not know the syntax to fail if a directory that is part of a resource does not exist: See sample code: Item 1:

RE: Optional Jars

2009-04-09 Thread Gavin
> -Original Message- > From: Stefan Bodewig [mailto:bode...@apache.org] > Sent: Thursday, 9 April 2009 8:32 PM > To: user@ant.apache.org > Subject: Re: Optional Jars > > On 2009-04-09, Gavin wrote: > > > ANT_HOME/lib jar listing > > --- > > ant.

onsuccess or onfailure

2009-04-09 Thread Eric Fetzer
Hi!  I'm an ex-NAnt user coming over to the Ant side.  Most things are close to identical, but I have a question about something I'm not finding.  In NAnt, you can create properties: which will go to the corresponding onsuccess or onfailure targets when finished based on whether it succeede

Strip a dirname from a property that represents a path

2009-04-09 Thread Eric Wood
I have a property that is a path reference to a jar file and I want to get the directory name for the element. The task dirname works with a file to set a property, but is there a simply solution to grabbing the path to from a file. I assume that I could use the ant-contrib PropertyRegex task, bu

Invalid implementation version between Ant core and Ant optional tasks.

2009-04-09 Thread matthew sporleder
I know the following problem is pretty common: Invalid implementation version between Ant core and Ant optional tasks. core: 1.6.5 optional: null But the 'optional: null' seems a little rare. This is especially strange because this ant is working on another box configured in (supposedly) ex

Ant sql task fails while executing insert statement containg string description with "--"

2009-04-09 Thread Pradeep.C
Hi There, I am trying to execute *.sql file containing insert statements using ant task onto the DB2 database. The build is failing for me as one of the insert statement in *.sql has a string description with "--" charters init. My insert statement looks something like this: INSERT INTO TableIt

Re: Optional Jars

2009-04-09 Thread Stefan Bodewig
On 2009-04-09, Gavin wrote: > ANT_HOME/lib jar listing > --- > ant.home: /usr/share/ant > ant-launcher.jar (11814 bytes) > ant-bootstrap.jar (16489 bytes) > bcel.jar (528673 bytes) > ant-junit.jar (92792 bytes) > ant-antlr.jar (5769 bytes) > jakarta-oro-2.

Optional Jars

2009-04-09 Thread Gavin
Hi All, Apologies for the long post, I do have a few things to ask. In return for a cure I'll try and put something back in by maybe clarifying some docs or adding examples if either of those ends up being warranted. On top of that, Buildbot at Apache may be able to offer something such as snapsho