Diane
Yes I have, but that doesn't appear to have an effect.
I think the problems is related to our choice of JDK. Version 1.3 has some
improvements over 1.2.2, but there is one caveats which relates to our
problem (Jay Glanville's link):
http://java.sun.com/j2se/1.3/docs/tooldocs/tools-changes.html
"When the new 1.3 compiler detects an error in a source file during a
compilation, it continues to parse the remaining source files and attempts
to identify any further errors that they may contain. Code generation is
completely suppressed for the remainder of the compilation, however, and no
class files will be generated, even for compilation units that contain no
errors. The old compiler in 1.2 would generate class files for any
compilation units that did not contain errors. This resulted in less
redundant work during the repeated compilations required to identify and
correct all errors in a large program containing many files with errors. We
hope to improve this behaviour in the future. The new compiler is
substantially faster overall, however, which should tend to offset this
somewhat. "
What I think we need is a work around to this problem which doesn't require
that we declare each source file. Any ideas?
Simon
-----Original Message-----
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: 20 April 2001 18:45
To: [EMAIL PROTECTED]
Subject: Re: Javac not generating class files.
Simon,
Have you tried setting the "failonerror" attribute to "no"?
Diane
--- [EMAIL PROTECTED] wrote:
> I see from the mail list archive that this problem has been raised
> before,
> but I can't see what the *solution* is!!
>
> Our problems is that we *have to* build the classes using jdk1.3, I
> understand from our developers that it has a lot to do with the security
> features this offers over and above 1.2.2 (?). They are currently using
> gmake to do this, but complain of that it's a nightmare trying to
> maintain
> the make files .. hence the reason for looking at ANT. (have you all
> gone
> to sleep?).
>
> I also see from Jay Glanville's link when a source file contains an
> error
> (using javac 1.3) "Code generation is completely suppressed for the
> remainder of the compilation, however, and no class files will be
> generated,
> even for compilation units that contain no errors.".
>
> Is there any means within Ant that we can circumvent this behaviour? I
> want
> some classes to be generated irrespective of whether some other source
> file
> in another branch of the code tree failed to compile! (he says stamping
> his
> feet!).
>
> Kind regards
>
> Simon
>
>
> > Simon Richardson
> > Technology
> > Tel: 020 7574 8838
> > E Mail: [EMAIL PROTECTED]
> >
> > Halifax Group Treasury & Wholesale Banking
> > 33 Old Broad Street
> > London
> > EC2N 1HZ
> >
>
>
----------------------------------------------------------------------------
--
> Part of the Halifax Group, Halifax plc, Registered in England No.
> 2367076. Registered Office: Trinity Road, Halifax, West Yorkshire HX1
> 2RG. Represents only the Halifax Financial Services Marketing Group for
> the purposes of advising on and selling life assurance, pensions and
> unit trust business. The Marketing Group is regulated by the Personal
> Investment Authority. Switchboard 01422 333333.
>
>
>
============================================================================
==
>
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
------------------------------------------------------------------------------
Part of the Halifax Group, Halifax plc, Registered in England No. 2367076. Registered
Office: Trinity Road, Halifax, West Yorkshire HX1 2RG. Represents only the Halifax
Financial Services Marketing Group for the purposes of advising on and selling life
assurance, pensions and unit trust business. The Marketing Group is regulated by the
Personal Investment Authority. Switchboard 01422 333333.
==============================================================================