ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petar Tahchiev <paranoia...@gmail.com>
Subject Re: New user
Date Mon, 19 Dec 2005 10:03:59 GMT
On 19/12/05, Hooper, Paul <phooper@msilm.com> wrote:
>
> 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:paranoiabla@gmail.com]
> Sent: 19 December 2005 09:32
> To: Ant Users List
> Subject: Re: New user
>
> On 19/12/05, Hooper, Paul <phooper@msilm.com> 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:
> > response@msilm.com
> >
> > 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: user-unsubscribe@ant.apache.org For additional
>
> > commands, e-mail: user-help@ant.apache.org
> >
> >
> 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:
> response@msilm.com
>
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Have you tried to start ant with the -d ot -v options?  Also
<test> with outfile="yourFileName" attribute will genrate txt file  that
holds  info.

--
Regards, Petar!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message