AW: How to give conditions.?

2006-02-22 Thread Jan.Materne
>If I want to give conditions like a user i/p which >decides whther my application is to be deployed in Tomcat or Weblogic > >Then is it possible through ANT. ? >Something like one build.xml asking where do you want to >deploy the project Jan --

Re: Support for JUnit 4?

2006-02-22 Thread Stefan Bodewig
On Wed, 22 Feb 2006, Jan Materne <[EMAIL PROTECTED]> wrote: > Because JUnit4 is just released and it seemed to me that it wasnt > very clear available in the cvs It has, they just used an approach different from the one we use at Apache. While "our" projects create a branch with a release so tha

Re: AntUnit tests need fully-qualified names

2006-02-22 Thread Stefan Bodewig
On Wed, 22 Feb 2006, Vladimir Egorov <[EMAIL PROTECTED]> wrote: > The plainlistener that comes with AntUnit uses test target names as > results names. The plainlistener is more or less just a proof of concept. When I put it together I needed someting to quickly show to myself that AntUnit really

Re: Support for JUnit 4?

2006-02-22 Thread Stefan Bodewig
On Wed, 22 Feb 2006, Joe Schmetzer <[EMAIL PROTECTED]> wrote: > On Wed, 22 February, 2006 11:59 am, Steve Loughran wrote: >> Having looked at the junit4, I dont see the point in the annotated >> design. >> >> by backing away from having a base class, they have to jump through >> lots of hoops to ma

Re: Support for JUnit 4?

2006-02-22 Thread Stefan Bodewig
On Tue, 21 Feb 2006, Marian Petras <[EMAIL PROTECTED]> wrote: > I would like to know about the current status of Ant's support for > JUnit 4. The junit task currently only supports JUnit 3 style tests, this means you must wrap your JUnit 4 tests in a JUnit4TestAdapter in order to run them in Ant.

How to give conditions.?

2006-02-22 Thread Shweta Bodade
Hello all, If I want to give conditions like a user i/p which decides whther my application is to be deployed in Tomcat or Weblogic Then is it possible through ANT. Something like one build.xml asking where do you want to deploy the project After user gives i/p then respective b

RE: Regarding Continous build integration.

2006-02-22 Thread Ferrer, Eric
Rob, I have only been in SF for Java Once conferences. We have a similar setup with a default target that builds with no unit test and deploys a war for production. To give you a bit more detail of what we are looking at for the next project/product life cycle. We will be deploying 6 wars to one

RE: Regarding Continous build integration.

2006-02-22 Thread Anderson, Rob (Global Trade)
I think you are talking about adding a default behavior so that if no args are passed the production release is created. This can be done by adding another target like this... Then make the other targets depend on this one. If ${env} is passed in on the command line, this target will not run

RE: Question regarding the Jar task

2006-02-22 Thread bill/wilandra
To get a little better understanding of what is happening in your particular case run the Ant file with the -verbose switch. This outputs a lot of information about how things are run. You may find something in the output that will show you exactly what the zip task does. I find the verbose output

RE: question about dependencies

2006-02-22 Thread Vladimir Egorov
Ant guarantees that a dependency executes once per project, not necessarily once per run. When you use or , you start a new project with each call. This is why the init target gets executed again - once in each new project you start. Vladimir -Original Message- From: Stephen McConnell [m

RE: question about dependencies

2006-02-22 Thread Stephen McConnell
> -Original Message- > From: David Rosenstein [mailto:[EMAIL PROTECTED] > Sent: Thursday, 23 February 2006 2:33 AM > To: user@ant.apache.org > Subject: question about dependencies > > Hi All- > Sorry about the double post. The rest of my question is here now. > > I've seen a couple

AntUnit tests need fully-qualified names

2006-02-22 Thread Vladimir Egorov
Hi All, The plainlistener that comes with AntUnit uses test target names as results names. Since two or more build files can define target named testFoo, this can lead to naming conflicts. JUnit has the same issue; it solves it by using fully-qualified test method names. Although one can wr

Re: question about dependencies

2006-02-22 Thread Matt Benson
--- David Rosenstein <[EMAIL PROTECTED]> wrote: > Hi All- > Sorry about the double post. The rest of my > question is here now. > > I've seen a couple of rumblings in the archives on > this, but I am really > confused about the ant documentation versus actual > behavior on target > dependencies

Re: question about dependencies

2006-02-22 Thread Joe Schmetzer
On Wed, 22 February, 2006 4:03 pm, David Rosenstein wrote: > Hi All- > Sorry about the double post. The rest of my question is here now. > > I've seen a couple of rumblings in the archives on this, but I am really > confused about the ant documentation versus actual behavior on target > dependenci

question about dependencies

2006-02-22 Thread David Rosenstein
Hi All- Sorry about the double post. The rest of my question is here now. I've seen a couple of rumblings in the archives on this, but I am really confused about the ant documentation versus actual behavior on target dependencies. The documentation (

question about dependencies

2006-02-22 Thread David Rosenstein
Hi All- I've seen a couple of rumblings in the archives on this, but I am really confused about the ant documentation versus actual behavior on target dependencies. The documentation (http://ant.apache.org/manual/using.html#targets) seems to imply that once a target dependency is executed it will

Re: Support for JUnit 4?

2006-02-22 Thread Joe Schmetzer
On Wed, 22 February, 2006 2:00 pm, Steve Loughran wrote: > Joe Schmetzer wrote: >> Without claiming to understand the considerations that went into the >> design of JUnit4, I get the feeling that it is a response to TestNG, >> which relies entirely upon annotations for tagging test methods. [snip

Re: Support for JUnit 4?

2006-02-22 Thread Steve Loughran
Joe Schmetzer wrote: On Wed, 22 February, 2006 11:59 am, Steve Loughran wrote: [EMAIL PROTECTED] wrote: I dont think you concur with me, Steve. I dont see any advantage using annotations in JUnit4 neither. Having looked at the junit4, I dont see the point in the annotated design. by backin

RE: Question regarding the Jar task

2006-02-22 Thread Barak Yaish
It's me again. There is something bothering me - when I'm running the ant script written below (from my previous mail), I don't see in the output that the Zip task is being executed. Even if I add update="true", the task still not getting executed. If I change the destfile to be new file (and no

Re: Support for JUnit 4?

2006-02-22 Thread Joe Schmetzer
On Wed, 22 February, 2006 11:59 am, Steve Loughran wrote: > [EMAIL PROTECTED] wrote: >> I dont think you concur with me, Steve. >> I dont see any advantage using annotations in JUnit4 neither. > > Having looked at the junit4, I dont see the point in the annotated design. > > by backing away from ha

Re: AW: AW: Support for JUnit 4?

2006-02-22 Thread Steve Loughran
[EMAIL PROTECTED] wrote: I dont think you concur with me, Steve. I dont see any advantage using annotations in JUnit4 neither. Having looked at the junit4, I dont see the point in the annotated design. by backing away from having a base class, they have to jump through lots of hoops to make e

Re: AW: AW: Support for JUnit 4?

2006-02-22 Thread Steve Loughran
[EMAIL PROTECTED] wrote: I dont think you concur with me, Steve. I dont see any advantage using annotations in JUnit4 neither. My point is another: if people use the most current version of the "standard" unit testing framework, the "standard" build tool should support that. (Personally I wont u

AW: AW: Support for JUnit 4?

2006-02-22 Thread Jan.Materne
I dont think you concur with me, Steve. I dont see any advantage using annotations in JUnit4 neither. My point is another: if people use the most current version of the "standard" unit testing framework, the "standard" build tool should support that. (Personally I wont use JU4 as long as I dont se

Re: AW: Support for JUnit 4?

2006-02-22 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Because JUnit4 is just released and it seemed to me that it wasnt very clear available in the cvs (as Gump has used only the 'old' 3.8.1), I doubt that there are many thoughts about integrating JUnit4 into Ant yet. JUnit4 also needs Java5 due to extensive use of annota

Task def and classpath problem

2006-02-22 Thread ar
Hi all, I define a task and try to use it (Hibernate Schema Update). It needs a classpath initialized. Here's how I defined it : ... This works fine on Windows environment, but not on

Re: conditional execution

2006-02-22 Thread Paul Pogonyshev
On 21 February 2006 23:52, Anderson, Rob (Global Trade) wrote: > If the existance of a file is your condition, use a combination of > , , > [...] Thanks, I already implemented it using macros and task. Making it the way you suggest would be kinda ugly in my case, since I need to repeat the same

RE: Question regarding the Jar task

2006-02-22 Thread Barak Yaish
Hello again, Here is the target I configured in the build.xml, but it doesn't seems to be work: where common.jar is jar created in previous target. This is the relevant part of the ant output:

AW: Question regarding the Jar task

2006-02-22 Thread Jan.Materne
Because extends this example from the manual should help zips all files in the htdocs/manual directory into the docs/user-guide directory in the archive, adds the file ChangeLog27.txt in the current directory as docs/ChangeLog.txt, and includes all the html files i