Hey Jason,
A: Yep, the class path does point to both of the output directory's.
Other classes are being loaded from the first output directory before
the failure.
B: No the space is not a cut & paste error. I was expecting a $, but ANT gives
a space.
I'm not sure about the reason to this, but when I do a javaP on the inner
class it also
gives back a space + the details of the class.
Thanks
JP.
Jason Pringle wrote:
> Does your classpath for the second compile include the output directory from
> the first compile? If not, the compiler will not find a .class file for any
> of your API dependencies (including the inner class one) and will recompile
> it all.
>
> Also, in your log you posted there's a space in the class name in the error
> - is this a cut-n-paste error or does your code really have a space in the
> class name?
>
> --jason
>
> -----Original Message-----
> From: Jeffrey Porter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 6:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ANT 1.3 - JavaC - Exclude not working.
>
> Hi,
>
> Sorry for the confusion.
>
> The issue of the exclude has been resolved, that was down to a dependency I
> didn't see.
>
> The current problem is as you described. When I say 'loaded' I mean that I
> do
> not see the line..
>
> [Javac] [loaded
> /home/alan/daily_build/production/classes/src/metanix/connection/ConnectionB
> eanFactory$ConnectionBeanFactoryImpl.class
> in 2 ms]
>
> I have attached a cut down version of the log.xml file produced by ant. (the
> original was 4000 lines)
>
> The first task (compileAPI) runs fine & write out both class and inner
> class.
>
> The second task (compileTESTS) loaded other inner classes, but not this one
> (ConnectionBeanFactoryImpl).
> The line that fails, getInstance() is ment to return this inner class.
>
> All this code compiles fine in JBuilder4.0, just in ANT I have trouble.
>
> Thanks
> JP.
>
> Conor MacNeill wrote:
>
> > Jeffrey,
> >
> > I'm a little slow here. This thread started out with the issue of not
> being
> > able to exclude a file from a compilation. Has that issue been resolved?
> >
> > Now, to the problem in this message, let me see if I can understand the
> > steps
> > 1. You compile a set of classes which includes one inner class
> > 2. You compile a second set of classes which use that inner class.
> > 3. You say "The output (verbose) does not show the inner class being
> > loaded". I'm not sure what you mean by "loaded" here. Can you clarify,
> > please?
> >
> > Can you just make sure I have understood the problem? Can you also please
> > send us the output of "ant -debug" when this problem occurs. If its big,
> > please zip it up and attach.
> >
> > Let see what we can do to solve this?
> >
> > Conor
> >
> > ----- Original Message -----
> > From: "Jeffrey Porter" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 27, 2001 6:34 PM
> > Subject: Re: ANT 1.3 - JavaC - Exclude not working.
> >
> > >
> > > I have two separate javac tasks, the first builds my API, the seconds my
> > > TestSuites.
> > >
> > > The inner class gets parsed & built in the first task.
> > > It is in the second task, the compilation of the testSuite in which is
> it
> > > needed.
> > > The output (verbose) does not show the inner class being loaded, it
> shows
> > other
> > > classes & inner classes. Just not this particular inner class.
> > >
> > > The strange thing is that if I let the build.xml script run & fail, then
> > I run
> > > the build.xml again it works. If I exclude the inner class & compile the
> > rest
> > > of the classes & then have another javac
> > > target (a third one) to compile the testSuite that has a dependency on
> > the
> > > inner class, it still
> > > fails.
> > >
> > > I am really getting annoyed with this, if you could help it would be
> > great.
> > >
> > > JP.
> > >
> > >
> > >
> > >
> > >
> > >
> > > Jay Glanville wrote:
> > >
> > > > Just out of curiosity, do any other classes have a dependency on this
> > file?
> > > > Are there other classes in the same package that are being compiled?
> > In
> > > > other words, while ant may not be telling the compiler to compile this
> > one
> > > > specific file, the compiler my be trying to compile it due to
> > dependency
> > > > resolution.
> > > >
> > > > To confirm that ant is not including it in the compile list, use the
> > > > -verbose command line parameter and see if this file is in the list of
> > files
> > > > sent to the compiler.
> > > >
> > > > Jay
> > > >
> > > > -----Original Message-----
> > > > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, March 22, 2001 11:08 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: ANT 1.3 - JavaC - Exclude not working.
> > > >
> > > > I'm tying to complie a bunch of source code and there is a dependancy
> > in
> > > >
> > > > the code.
> > > > All I want to do is to exclude the file.....
> > > >
> > > > meta.con.ConnectionBeanFactoryTest.java
> > > >
> > > > >From the javac command. (so hence the compile error will not occur)
> > > >
> > > > I've tried both the following command and neither work.
> > > >
> > > > <exclude name="**/ConnectionBeanFactoryTest.java" />
> > > > &
> > > > excludes ="**/ConnectionBeanFactoryTest.java"
> > > >
> > > > Someone please help.
> > > >
> > > > JP.
> > > >
> > > > --
> > > > .........if in doubt, get a hammock
> > >
> > > --
> > > .........if in doubt, get a hammock
> > >
> > >
> > >
>
> --
> .........if in doubt, get a hammock
--
.........if in doubt, get a hammock
begin:vcard
n:Porter;Jeffrey
tel;work:44 (0)1895 254 254
x-mozilla-html:FALSE
org:Metadyne Ltd.;Research & Development
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Architect
x-mozilla-cpt:;27728
fn:Jeffrey Porter
end:vcard