"Building tool" community feedback

2006-10-16 Thread Gilles Scokart
Everywhere i go, i see that there is a lot of people (like me) thinking that the existing build tools are extremely useful (ant in first;-) ). But still, a lot of people think that something else should be possible. I have thus started a forum in order to collect info from the "builder community"

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Steve Loughran
Hans Schwaebli wrote: Why does it take so long to finish the next version of Ant? 1. we go through a rigorous beta test phase as it is the best way of making sure you havent broken anything. Even so, we know that lots of people will not touch it until version 1.7.0 ships, and there will be a

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread James Abley
Steve Loughran wrote: Hans Schwaebli wrote: At least you should have released quickly a Ant version with built in support for JUnit 4. Alternatively, "Junit4 should have been backwards compatilbe with the previous version. See point (1) +1 To add another thing to consider, perhaps the

Re: ant and classloading

2006-10-16 Thread Peter Reilly
On 10/16/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: I'm not sure this is 100% an Ant question, but it is within the context of Ant. In my Ant task, I'm loading up a class using Class.forName() and pass in a classloader that I would have expected to be assigned as the classloader for the class.

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Steve Loughran
James Abley wrote: Steve Loughran wrote: Hans Schwaebli wrote: At least you should have released quickly a Ant version with built in support for JUnit 4. Alternatively, "Junit4 should have been backwards compatilbe with the previous version. See point (1) +1 To add another thing to con

creating javadoc

2006-10-16 Thread RAMADOSS Padhmapriya
Hi, I want to create a javadoc for 6 to 7 project. Am able to create separately. I want these to be in the same index file. Can any one give me solution for this. Regards, PriyaRamadoss. Confidentiality Statement: This message is intended only for the individual or entity to which it

AW: creating javadoc

2006-10-16 Thread Jan.Materne
mmmh with multiple s pointing to their dirs? Jan >-Ursprüngliche Nachricht- >Von: RAMADOSS Padhmapriya [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 16. Oktober 2006 11:01 >An: user@ant.apache.org >Betreff: creating javadoc > >Hi, > > > >I want to create a javadoc for 6 to 7 proje

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Steve Loughran
Prashant wrote: Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its lib [1] ? While the current release version of Xerces is 2.8 with support for DOM Level 3, Schema Validation, Not to mention the bug fixes. As of 30 seconds ago, it distributes v 2.8.1. Version 2.6.2 does do

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Prashant
Steve Loughran wrote: Prashant wrote: Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its lib [1] ? While the current release version of Xerces is 2.8 with support for DOM Level 3, Schema Validation, Not to mention the bug fixes. As of 30 seconds ago, it distributes v 2.8.

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Steve Loughran
Prashant wrote: Steve Loughran wrote: Prashant wrote: Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its lib [1] ? While the current release version of Xerces is 2.8 with support for DOM Level 3, Schema Validation, Not to mention the bug fixes. As of 30 seconds ago, it d

How to resolve a NullPointerException

2006-10-16 Thread tharanga wijethilake
Hi all, I am tring to run this Ant file using a java program. When I run this using "Ant run" option provided in eclipse it runs with out any trouble. but when I try to run prgrammtically it gives a null pointer. Please Could someone tell me how am i supose t

AW: How to resolve a NullPointerException

2006-10-16 Thread Jan.Materne
Dont know that task, but I have doubts using the leading "/" on the bundlepath value ... Jan >-Ursprüngliche Nachricht- >Von: tharanga wijethilake [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 16. Oktober 2006 16:41 >An: Ant Users List >Betreff: How to resolve a NullPointerException > >H

Re: Ant 1.7.0Beta3 released

2006-10-16 Thread Dominique Devienne
> But whats the reason to sticking to Xerces 2.6.2 ? Like I said: its just been upgraded. I think you forgot to update WHATSNEW steve. Thanks, --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: How to resolve a NullPointerException

2006-10-16 Thread Antoine Levy-Lambert
Hello, how do you run this programatically ? one common source of null pointer exceptions in Ant API use is to forget to set a project reference on task objects or datatypes. The null pointer exception happens then as soon as the task or the datatype tries to log something. if you have a NPE w

How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread David
Dear members, I am figthing for avoiding to use from ant contrib lib, but I guess for solving this problem there is no other solution. I have the following targets: ... Note: From working properly this target I need to compute the property target.var.value (and this

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Vishal Vishnoi
I used to be in the same boat sometime back, where I thought using ant-contrib is building too many external dependency. Over time I've realized that Ant-contrib is very stable and complements Ant very well. If you need to use 'if', then use 'if'. Don't fight it, otherwise you will end up with

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Scot P. Floess
I completely agree. I too fought the urge to use ant contrib for the same reasons (I was bent on stock ant). But, if you use ant like you might use a shell script, ant contrib makes perfect sense. Its a "small" dependency andmake your build.xml much cleaner and easier to understand. Vishal

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Dominique Devienne
On 10/16/06, David <[EMAIL PROTECTED]> wrote: Dear members, I am figthing for avoiding to use from ant contrib lib, but I guess for solving this problem there is no other solution. I have the following targets: ... Note: From working properly this target I need to compute the proper

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Dominique Devienne
Do you have any idea about how to solve this problem? 1) Simply add the unless ="target.var" directly to compute-target.var, if the latter doesn't have any dependencies (or copy the content of compute-target.var to target.pre). 2) Convert compute-target.var to a macro, which share the Project

Re: creating javadoc

2006-10-16 Thread Dominique Devienne
I want to create a javadoc for 6 to 7 project. Am able to create separately. I want these to be in the same index file. AFAIK, you cannot "merge" independent Javadoc runs. No one has created a tool for this that I'm aware of. You must run a single Javadoc run, with all sources (even from differ

Create a dir. named with the current system date

2006-10-16 Thread Marcelo de Moraes Serpa
Hi List, I'm developing a backup routing with ant, and I need to create the backup folder based on the current date. The question is: * How could I possibly retrieve the system current date and use it to make a new directory? Thanks in advance, Marcelo.

Re: Create a dir. named with the current system date

2006-10-16 Thread Joel Klein
Marcelo de Moraes Serpa wrote: The question is: * How could I possibly retrieve the system current date and use it to make a new directory? The tstamp task with the format nested element does this. Read its documentation for more help, but here's an example : No

Re: Create a dir. named with the current system date

2006-10-16 Thread Marcelo de Moraes Serpa
Ok, sorry! I should have read the documentation before... Thanks for the info ;) Marcelo. On 10/16/06, Joel Klein <[EMAIL PROTECTED]> wrote: Marcelo de Moraes Serpa wrote: > The question is: > * How could I possibly retrieve the system current date and use it to > make a > new directory? The

Set enviroment variable with ant

2006-10-16 Thread Marcelo de Moraes Serpa
I need to set the PGPASSWORD enviroment variable in a ant project, however I don't know how could I do it... should I use the exec task?

Re: Set enviroment variable with ant

2006-10-16 Thread Antoine Levy-Lambert
Hello Marcelo, setting an environment variable from ant is possible using the exec task. Using a nested element (see the doc). The new environment variable is only visible for the one particular program started by the exec task. similarly, the task can set env vars, this only when you fork jav

Re: ant and classloading

2006-10-16 Thread Jacob Kjome
Quoting Peter Reilly <[EMAIL PROTECTED]>: > On 10/16/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: > > > > I'm not sure this is 100% an Ant question, but it is within the context of > Ant. > > > > In my Ant task, I'm loading up a class using Class.forName() and pass > > in a classloader that I would

Re: Set enviroment variable with ant

2006-10-16 Thread Marcelo de Moraes Serpa
Hi Antoine, thanks a lot for the reply! I actually solved the problem using the task! I'll keep those other possibilities in mind, they might come in handy ;) Marcelo. On 10/16/06, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: Hello Marcelo, setting an environment variable from ant is pos

a problem compiling a Java 5 project with generics

2006-10-16 Thread Chavdar Botev
Hi! I've come accross the following problem trying to compile Java 5 classes with generics using Ant 1.6.5. I've attached project with sample Java classes and a build.xml file. NOTE: Please create a src/test subdirectory and save the attached .java files into it. The mailing list server gave me

Check if file already exists

2006-10-16 Thread Christian Hauser
Hello I'd like to check within an Ant target whether a particular file already exists on the disk and if not download the file (using the Get Ant task). How do I best check if the file already exists? Any help (preferably with a small code snippet) is appreciated. Thanks in advance, Christi

Re: Check if file already exists

2006-10-16 Thread Mathieu Champlon
Christian Hauser a écrit : Hello I'd like to check within an Ant target whether a particular file already exists on the disk and if not download the file (using the Get Ant task). How do I best check if the file already exists? Any help (preferably with a small code snippet) is appreciated.

Re: Check if file already exists

2006-10-16 Thread Christian Hauser
Thank you Mat That was exactly what I was looking for. Christian Mathieu Champlon wrote: Christian Hauser a écrit : Hello I'd like to check within an Ant target whether a particular file already exists on the disk and if not download the file (using the Get Ant task). How do I best check

Re: How to preserve a property assigned via antcall on main build process?

2006-10-16 Thread Ninju Bohra
David, You may want to try the to bring back the value from a Later, Ninju - Original Message From: David <[EMAIL PROTECTED]> To: Ant Apache User Group Sent: Monday, October 16, 2006 11:30:17 AM Subject: How to preserve a property assigned via antcall on main build process? D

RE: ant and classloading

2006-10-16 Thread Rainer Noack
maybe [1] can help you with diagnostics. rainer [1] http://enitsys.sourceforge.net/ant-classloadertask/ > -Original Message- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Monday, October 16, 2006 10:24 PM > To: Ant Users List > Subject: Re: ant and classloading > > > Quotin

RE: ant and classloading

2006-10-16 Thread Jacob Kjome
Very interesting stuff. I will definitely use your tasks for my own build files. It would be very nice if your tasks were added to Ant-1.7. Any luck with that so far? I actually did come up with a solution to my problem, though. I need to be able to add path elements on the fly via the t

Re: a problem compiling a Java 5 project with generics

2006-10-16 Thread Petar Tahchiev
On 17/10/06, Chavdar Botev <[EMAIL PROTECTED]> wrote: Hi! I've come accross the following problem trying to compile Java 5 classes with generics using Ant 1.6.5. I've attached project with sample Java classes and a build.xml file. NOTE: Please create a src/test subdirectory and save the attach