AW: Detecting what OS you are running...

2006-02-23 Thread Jan.Materne
> > > > ... > plus Another technique is Could be helpful. But it has the drawbacks of like new namespace Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Read Build File Fom a Jar

2006-02-23 Thread Jan.Materne
Cant find the thread, but we had a discussion about that on the dev list. Background is that most of Ant will support s as a more abstract type than or . Many tasks do that already in HEAD. While thinking about that, what about the buildfile itself? E.g. could be an UrlResource, FileResource,

Re: Detecting what OS you are running...

2006-02-23 Thread Tommy Nordgren
On 24 feb 2006, at 00.00, JG wrote: Hi, I am writing an ANT config script that is to be used on multiple platforms (Windows XP, Mac, Fedora) and I have a target that I want to run a certain way for Windows XP and another way for other OS's. Is there a way to make a target run only for a

Re: Detecting what OS you are running...

2006-02-23 Thread Ivan \"Rambius\" Ivanov
Hello, here are some hints. 1) You can use os.name property to find the OS you are running on. 2) If you want to execute a native OS command only on the OS that supports it you can use task with os attribute. See [1] for more details. 3) If you want to run different targets depending on the os yo

Detecting what OS you are running...

2006-02-23 Thread JG
Hi, I am writing an ANT config script that is to be used on multiple platforms (Windows XP, Mac, Fedora) and I have a target that I want to run a certain way for Windows XP and another way for other OS's. Is there a way to make a target run only for a given OS? thanks, joe

Re: AntUnit tests need fully-qualified names

2006-02-23 Thread Vishal Vishnoi
Vladimir Egorov wrote: Stefan, thanks for your reply. Yes, printing the build file makes things clear for an isolated run. But if you want to compare runs across various systems, you need a fully-qualified test name that does not depend on the system. The absolute path to build file depends on t

RE: AntUnit tests need fully-qualified names

2006-02-23 Thread Vladimir Egorov
Stefan, thanks for your reply. Yes, printing the build file makes things clear for an isolated run. But if you want to compare runs across various systems, you need a fully-qualified test name that does not depend on the system. The absolute path to build file depends on the system. In JUnit, the

Read Build File Fom a Jar

2006-02-23 Thread Michael MacFadden
Hello, I have a situation where a I would like to package a build file in a jar file and then run ANT using this build file. Is there any way I can do this without extracting the build file from the jar file first? Basically I am working in an arbitrary environment that uses a plugin architectur

AW: List of file names as arguments to a java task

2006-02-23 Thread Jan.Materne
I dont want to give the hint with the search engine ... but you could find http://marc.theaimsgroup.com/?l=ant-user&m=114018171328198&w=2 Jan >-Ursprüngliche Nachricht- >Von: ar [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 23. Februar 2006 14:54 >An: user@ant.apache.org >Betreff: Li

Re: List of file names as arguments to a java task

2006-02-23 Thread Mark Russell
You are telling the compile command to only include the **/*.xml files it probably should be **/*.java ar wrote: > Hi all, > > I'd like to give to provide to my java task a list of file names. I don't > know how to do. > I tried: > > > > > >

Re: Support for JUnit 4?

2006-02-23 Thread Steve Loughran
Jon Skeet wrote: 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

Re: Support for JUnit 4?

2006-02-23 Thread Steve Loughran
Stefan Bodewig wrote: 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 h

List of file names as arguments to a java task

2006-02-23 Thread ar
Hi all, I'd like to give to provide to my java task a list of file names. I don't know how to do. I tried: ... but it doesn't work. The java command I want to get is

Re: Support for JUnit 4?

2006-02-23 Thread Peter Reilly
On 2/23/06, Jon Skeet <[EMAIL PROTECTED]> wrote: > > ... > I would suggest a completely new task (or tasks) and that the jar file > is *not* supplied with stock Ant. > That way we could get round the nasty problem we've currently got of > requiring JUnit's jar file to be in the lib directory to get

RE: Support for JUnit 4?

2006-02-23 Thread Jon Skeet
> 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

Re: Support for JUnit 4?

2006-02-23 Thread Marian Petras
Stefan Bodewig wrote: 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 ord

RE: How to give conditions.?

2006-02-23 Thread Shweta Bodade
Thnx I used And want to retrieve the value entered I am using Eclipse but before I can enter any value through console It displays message. Like. Failed to read input from Console. Do I need to write anything else before I close input task Like sleep or something...?

Re: How to give conditions.?

2006-02-23 Thread Patrick Martin
And if you want a nicer GUI than , you can use antform: http://antforms.sourceforge.net/ Patrick M. On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >If I want to give conditions like a user i/p which > >decides whther my application is to be deployed in Tomcat or Weblogic >