RE: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Daffin, Miles \(IT\)
And to me. I assumed that when using delete with no dir attribute and a nested fileset would not include the base dir. After all, if one uses a fileset in the context of a copy this is what happens. Take this build as proof:

Re: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Dominique Devienne
Explicitly saying includes="**/*" literally means only any file or directory below the basedir of the fileset. Note that we welcome any suggestions regarding where in the manual you might have hoped to find this file scanning information. This thread picked my interest, because I didn't know th

RE: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Matt Benson
--- "Daffin, Miles (IT)" <[EMAIL PROTECTED]> wrote: > Don't know how I missed that. It does feel wrong > somehow. Why should a > this includes pattern mean that the base directory > is excluded? I don't > see how one could deduce this behaviour. Can you? It's a matter of knowing that Ant includes

RE: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Daffin, Miles \(IT\)
Don't know how I missed that. It does feel wrong somehow. Why should a this includes pattern mean that the base directory is excluded? I don't see how one could deduce this behaviour. Can you? Thanks all. Miles > -Original Message- > From: Peter Reilly [mailto:[EMAIL PROTECTED] > Sent

Re: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Peter Reilly
It is in the manual for : deletes all files and subdirectories of build, without build itself. Peter On 1/12/07, Matt Benson <[EMAIL PROTECTED]> wrote: --- "Daffin, Miles (IT)" <[EMAIL PROTECTED]> wrote: > Dear All, > > I want to delete everything in a base directory but > *not* the

Re: Delete the contents of a directory but not the directory itself

2007-01-12 Thread Matt Benson
--- "Daffin, Miles (IT)" <[EMAIL PROTECTED]> wrote: > Dear All, > > I want to delete everything in a base directory but > *not* the base dir > itself. (The base dir *must not be deleted* because > it is a mount point, > not a dir that can be created/deleted in a normal > manner.) If I do this:

Re: ConcurrentModificationException

2007-01-12 Thread Peter Reilly
Also as the lock is on the hashtable, no new locks are added as the iteration will use the same lock. On 1/12/07, Matt Benson <[EMAIL PROTECTED]> wrote: --- Steve Loughran <[EMAIL PROTECTED]> wrote: > Matt Benson wrote: > > I agree, Peter. However, the patch I am currently > > testing adds sy

Re: ConcurrentModificationException

2007-01-12 Thread Matt Benson
--- Steve Loughran <[EMAIL PROTECTED]> wrote: > Matt Benson wrote: > > I agree, Peter. However, the patch I am currently > > testing adds synchro blocks to all Hashtable > copies in > > PropertyHelper. :) > > > > -Matt > > Just as long as we don't get deadlocks. > > > When I was updating the

http://ant.apache.org/manual/api/index.html displays "Not Found" for javadoc

2007-01-12 Thread Vishal Vishnoi
___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally

Re: Dynamically building dependencies...

2007-01-12 Thread Xavier Hanin
On 1/12/07, Andrew Close <[EMAIL PROTECTED]> wrote: hello all, Hello Andrew, i'm looking for a more elegant/efficient solution to a problem we have in our build scripts. our source code is fairly unorganized as an organization, and as we've grown and added systems it has become unwieldy. th

Dynamically building dependencies...

2007-01-12 Thread Andrew Close
hello all, i'm looking for a more elegant/efficient solution to a problem we have in our build scripts. our source code is fairly unorganized as an organization, and as we've grown and added systems it has become unwieldy. this is more of a process problem than an ANT script problem, but i'm hopi

Re: On fail listener?

2007-01-12 Thread James Carr
I dont see any build event associated with build failures Thanks, James On 1/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Using custom BuildListeners. http://ant.apache.org/manual/listeners.html http://ant.apache.org/manual/develop.html#buildevents http://svn.apache.org/repos/asf/ant/c

Delete the contents of a directory but not the directory itself

2007-01-12 Thread Daffin, Miles \(IT\)
Dear All, I want to delete everything in a base directory but *not* the base dir itself. (The base dir *must not be deleted* because it is a mount point, not a dir that can be created/deleted in a normal manner.) If I do this: all files are deleted *but* it leaves empty dirs behind. I wan

Re: ConcurrentModificationException

2007-01-12 Thread Steve Loughran
Matt Benson wrote: I agree, Peter. However, the patch I am currently testing adds synchro blocks to all Hashtable copies in PropertyHelper. :) -Matt Just as long as we don't get deadlocks. When I was updating the diagnostics for Ant1.7.1 when a task doesnt get found, the IDE (intellij) wa

Re: How to share a database connection betwwen differnet ant (sql) task

2007-01-12 Thread Steve Loughran
ashish shrivastava wrote: Thanks Steve , Your inputs are great help. Regards Ashish Shrivastava Software Enginner Impetus Infotech Pvt Ltd Indore,India I should add that if you do want to do bulk imports of data, the fastest way to do it in mysql is to use the LOAD FILE sql command. I pr

AW: Ant String replace

2007-01-12 Thread Jan.Materne
If does not work for you, I dont see any other way without external libs ... Oh - yes:

AW: how yo use multiple build.properties file

2007-01-12 Thread Jan.Materne
>> Is this possible to use multiple properties file for my build,i mean >> rather than using a single build.properties file for my build i want >> to divide my property file into multiple files and want to use them >> depending on some condition being meet. >> My build.xml is calling other build