Re: how yo use multiple build.properties file

2007-01-11 Thread Mathieu Champlon
Hello, What do you mean by 'refer to' ? Don't you use to load 'build.properties' ? You can load any number of property files you need, see http://ant.apache.org/manual/CoreTasks/property.html MAT. ashish shrivastava a écrit : Hi, Is this possible to use multiple properties file for my buil

how yo use multiple build.properties file

2007-01-11 Thread ashish shrivastava
Hi, 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 files .how

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

2007-01-11 Thread ashish shrivastava
Thanks Steve , Your inputs are great help. Regards Ashish Shrivastava Software Enginner Impetus Infotech Pvt Ltd Indore,India On 1/11/07, Steve Loughran <[EMAIL PROTECTED]> wrote: ashish shrivastava wrote: > I am OK with the complexity. I can not group sql task as there are > dependencies on

Re: Problems building Ant 1.7.0 and JDK 1.6.0

2007-01-11 Thread Stefan Bodewig
On Thu, 11 Jan 2007, Jacob Kjome <[EMAIL PROTECTED]> wrote: > At 11:05 PM 1/11/2007, you wrote: >>I'm not sure whether it is going to stay that way or whether we make >>JUnit optional again in the future, but for Ant 1.7.0, JUnit is >>required. > > If JUnit is now required, shouldn't 1.7.x then s

Re: Problems building Ant 1.7.0 and JDK 1.6.0

2007-01-11 Thread Jacob Kjome
At 11:05 PM 1/11/2007, you wrote: >On Fri, 12 Jan 2007, Bruce Bushby <[EMAIL PROTECTED]> wrote: > >> The build fails saying "We cannot build the test jar unless JUnit is >> present" I've gone through the docs, specifically the "Installing >> Ant/Building Ant" but can't find an explanation for wher

Re: Problems building Ant 1.7.0 and JDK 1.6.0

2007-01-11 Thread Stefan Bodewig
On Fri, 12 Jan 2007, Bruce Bushby <[EMAIL PROTECTED]> wrote: > The build fails saying "We cannot build the test jar unless JUnit is > present" I've gone through the docs, specifically the "Installing > Ant/Building Ant" but can't find an explanation for where I'm going > wrong? Even if you don't

Problems building Ant 1.7.0 and JDK 1.6.0

2007-01-11 Thread Bruce Bushby
Hi Hoping somebody could assist with some problems I'm having building Ant 1.7.0 My setup: Fedora Core 6 (32bit vmware) JDK (/usr/local/jdk1.6.0) ANT (apache-ant-1.7.0) I extract the tar file in /usr/local/src cd into apache-ant-1.7.0 Then I check my env varibales, they're set as follows: expor

Re: Why Duplicate files allowed in Jar?

2007-01-11 Thread Matt Benson
That is the zip format for you. It's documented in the manual. -Matt --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi aakash, > > >Ant allows duplicate files in the jar task and has > set > >'add' as default value. > > can you clarify the actual use case? also, how does > it cause a pr

Re: Why Duplicate files allowed in Jar?

2007-01-11 Thread [EMAIL PROTECTED]
hi aakash, Ant allows duplicate files in the jar task and has set 'add' as default value. can you clarify the actual use case? also, how does it cause a problem. bill m - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Why Duplicate files allowed in Jar?

2007-01-11 Thread Aakash Kumar
Ant allows duplicate files in the jar task and has set 'add' as default value. Can anyone please help and tell me what use cases exist in the real world where having duplicate files in jar task will be needed or is helpful? I ask since the duplicate files are overwritten during unjar task. Thank

Re: ConcurrentModificationException

2007-01-11 Thread Thomas Voigt
Original-Nachricht Datum: Thu, 11 Jan 2007 11:26:17 -0800 (PST) Von: Matt Benson <[EMAIL PROTECTED]> An: Ant Users List Betreff: Re: ConcurrentModificationException > Thomas, some synchronization checks have been added > which fix the problem in my test (I was able to > observe

Re: ConcurrentModificationException

2007-01-11 Thread Peter Reilly
On 1/11/07, Matt Benson <[EMAIL PROTECTED]> wrote: I agree, Peter. However, the patch I am currently testing adds synchro blocks to all Hashtable copies in PropertyHelper. :) I agree, I was just too lazy to do it for the rest! Peter -Matt --- Peter Reilly <[EMAIL PROTECTED]> wrote: > Look

Re: ConcurrentModificationException

2007-01-11 Thread Matt Benson
--- Thomas Voigt <[EMAIL PROTECTED]> wrote: > Hi, > > Original-Nachricht > Datum: Thu, 11 Jan 2007 10:40:42 -0800 (PST) > Von: Matt Benson <[EMAIL PROTECTED]> > An: Ant Users List > Betreff: Re: ConcurrentModificationException > > > Hi-- > > there appear to be synchronization

Re: ConcurrentModificationException

2007-01-11 Thread Thomas Voigt
Hi, Original-Nachricht Datum: Thu, 11 Jan 2007 19:13:30 + Von: "Peter Reilly" <[EMAIL PROTECTED]> An: "Ant Users List" Betreff: Re: ConcurrentModificationException > Looking at the code and the stack error, the following patch may > fix the problem: > Index: src/main/org/ap

Re: ConcurrentModificationException

2007-01-11 Thread Thomas Voigt
Hi, Original-Nachricht Datum: Thu, 11 Jan 2007 10:40:42 -0800 (PST) Von: Matt Benson <[EMAIL PROTECTED]> An: Ant Users List Betreff: Re: ConcurrentModificationException > Hi-- > there appear to be synchronization issues around Ant's > properties. Here, setting a property (I im

Re: ConcurrentModificationException

2007-01-11 Thread Matt Benson
I agree, Peter. However, the patch I am currently testing adds synchro blocks to all Hashtable copies in PropertyHelper. :) -Matt --- Peter Reilly <[EMAIL PROTECTED]> wrote: > Looking at the code and the stack error, the > following patch may > fix the problem: > Index: > src/main/org/apache/t

Re: ConcurrentModificationException

2007-01-11 Thread Peter Reilly
Looking at the code and the stack error, the following patch may fix the problem: Index: src/main/org/apache/tools/ant/PropertyHelper.java === --- src/main/org/apache/tools/ant/PropertyHelper.java (revision 495336) +++ src/main/org/

Re: ConcurrentModificationException

2007-01-11 Thread Thomas Voigt
Hi, Original-Nachricht Datum: Thu, 11 Jan 2007 11:23:50 -0600 Von: "Andrew Close" <[EMAIL PROTECTED]> An: "Ant Users List" Betreff: Re: ConcurrentModificationException > On 1/11/07, Thomas Voigt <[EMAIL PROTECTED]> wrote: > > Hi, > > > > we recently started to get ConcurrentMod

Re: ConcurrentModificationException

2007-01-11 Thread Matt Benson
Hi-- there appear to be synchronization issues around Ant's properties. Here, setting a property (I imagine) and getting all properties () in can sometimes throw the comod exception. A possible workaround would be to use inheritAll="false" (true is default) and specify only the properties you ne

Re: ConcurrentModificationException

2007-01-11 Thread Andrew Close
On 1/11/07, Thomas Voigt <[EMAIL PROTECTED]> wrote: Hi, we recently started to get ConcurrentModificationExceptions with ant. We use ant 1.7 and ant-contrib 1.02b2 with jdk 1.5.0_07 (the same error occurs with jdk 1.5.0_10) on Windows Server 2003. are you testing this script out on your si

ConcurrentModificationException

2007-01-11 Thread Thomas Voigt
Hi, we recently started to get ConcurrentModificationExceptions with ant. We use ant 1.7 and ant-contrib 1.02b2 with jdk 1.5.0_07 (the same error occurs with jdk 1.5.0_10) on Windows Server 2003. The exception is not exactly reproducable, but seems to occur rather frequently. Top-level we use

Re: Ant String replace

2007-01-11 Thread Joe Eugene
Is there a way to do this with just ANT (no other libs). The reason for this, is we have to change our process to include "antcontrib". Thanks, Joe On 1/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Jan >-Ursprüngliche Nachricht- >Von: Joe Eugene [mailto:[EMAIL PROTECTED] >G

Re: Fileset, mapper, copy and duplicate files: which is selected?

2007-01-11 Thread Steve Loughran
Kees van Dieren wrote: Hi all, We use Filesets and regex mappers to select files for copying. How does Ant decide, which file to take in case of duplicates? I hoped that this was on modification date, however, this seems to be not always true, in most cases it does but in some, it does not (un

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

2007-01-11 Thread Steve Loughran
ashish shrivastava wrote: I am OK with the complexity. I can not group sql task as there are dependencies on other tasks. please tell me how to achieve it. ahh. when I said complexity, I meant "nobody in the ant team wants to write the code to do connection pooling as there is little perceive

Fileset, mapper, copy and duplicate files: which is selected?

2007-01-11 Thread Kees van Dieren
Hi all, We use Filesets and regex mappers to select files for copying. How does Ant decide, which file to take in case of duplicates? I hoped that this was on modification date, however, this seems to be not always true, in most cases it does but in some, it does not (unpredicable in which). Ex