I know this but it doesn't help with the problem :
How to capture stdout and stderr from junit
How to use dir and file names with spaces
Thanks
Paul
-----Original Message-----
From: Petar Tahchiev [mailto:[EMAIL PROTECTED]
Sent: 19 December 2005 09:32
To: Ant Users List
Subject: Re: New user
On 19/12/05, Hooper, Paul <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm running ant on Solaris 9.
> All seems to be well. I have my Java project building etc.
> As part of the build script I am running various junit tests.
> My question is two fold:
>
> How do I ensure that I am able to capture the stdout and stderr from
> the unittests.
> I am having problems capturing this data. I have tried to use
> junitreport but to no avail.
>
> My directory paths and filenames have spaces in them.
> Junit is reporting errors saying cannot find file "../aa ass/ada ad
> .csv" for instance.
> How can I force ant to quote all directories and paths to allow them
> to be correctly interpreted with spaces in ?
>
> Thanks
>
> Paul
>
> _Confidentiality notice: Whilst this company has procedures in place
> and makes every effort to safeguard both Inbound and Outbound Emails,
> we cannot guarantee that attachments are Virus - Free or compatible
> with your systems and therefore we do not accept any liability in
> respect of viruses or computer problems experienced. This e-mail and
> any files transmitted with it are confidential and/or privileged. They
> are for the intended recipient only. If you are not the intended
> recipient, you must not use, review, distribute, disclose, alter,
> print, copy, transmit or rely on this e-mail and any file transmitted
> with it. If you have received this e-mail and any file transmitted
> with it in error please notify the sender or Mitsui Sumitomo Insurance
> (London Management) Ltd Registered 4th Floor, 71 Fenchurch St, London,
EC3M 4BS Company Number 1063340 email:
> [EMAIL PROTECTED]
>
> Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui
> Sumitomo Insurance (London) Limited and Mitsui Sumitomo Insurance
> Company Limited are all regulated by the Financial Services Authority.
> _____________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
> commands, e-mail: [EMAIL PROTECTED]
>
>
With the junit task you can errorproperty="name of property to set" and
failureproperty="name of property to set" attributes and later to call
fail task with attribute if="some of your properties". So if the tests
fail or errors occur properties with the names you granted will be
established.
--
Regards, Petar!
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_Confidentiality notice: Whilst this company has procedures in place and
makes every effort to safeguard both Inbound and Outbound Emails, we cannot
guarantee that attachments are Virus - Free or compatible with your systems and
therefore we do not accept any liability in respect of viruses or computer
problems experienced. This e-mail and any files transmitted with it are
confidential and/or privileged. They are for the intended recipient only. If
you are not the intended recipient, you must not use, review, distribute,
disclose, alter, print, copy, transmit or rely on this e-mail and any file
transmitted with it. If you have received this e-mail and any file transmitted
with it in error please notify the sender or Mitsui Sumitomo Insurance (London
Management) Ltd Registered 4th Floor, 71 Fenchurch St, London, EC3M 4BS Company
Number 1063340 email: [EMAIL PROTECTED]
Syndicate 3210 (acting through its Managing Agent at Lloyd's), Mitsui Sumitomo
Insurance (London) Limited and Mitsui Sumitomo Insurance Company Limited are
all regulated by the Financial Services Authority.
_____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]