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/ConnectionBeanFactory$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


Searching for build.xml ...
Buildfile: /home/alan/daily_build/build.xml

compileAPI:
    [javac] Compiling 589 source files to /home/alan/daily_build/production/classes/src
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/src/metanix/connection/ClosedConnectionException.java
 in 2 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/src/metanix/connection/ConnectionAdapter.java 
in 24 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/src/metanix/connection/ConnectionBeanFactory.java
 in 5 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/src/metanix/connection/ConnectionBeanInfo.java 
in 6 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/src/metanix/connection/ConnectionBeanKeys.java 
in 3 ms]


    Removed lines of output.......


    [javac] [wrote 
/home/alan/daily_build/production/classes/src/metanix/connection/ConnectionAdapter.class]
    [javac] [checking class metanix.connection.ConnectionBeanFactory]
    [javac] [checking class metanix.connection.ConnectionBeanFactory. 
ConnectionBeanFactoryImpl]
    [javac] [checking class metanix.connection.ConnectionBeanKeys]
    [javac] [wrote 
/home/alan/daily_build/production/classes/src/metanix/connection/ConnectionBeanFactory.class]
    [javac] [wrote 
/home/alan/daily_build/production/classes/src/metanix/connection/ConnectionBeanFactory$ConnectionBeanFactoryImpl.class]
    [javac] [checking class metanix.connection.ConnectionBeanInfo]

    Removed lines of output.......

    [javac] Note: 
/home/alan/daily_build/source/metadyne/src/metadyne/format/JDBCResultSetInternalizerFormat.java
 uses or overrides a deprecated API.  Recompile with "-deprecation" for details.
    [javac] 1 warning
    [javac] [done in 149994 ms]

testAPI:

compileTESTSII:
    [mkdir] Created dir: /home/alan/daily_build/production/classes/test-src
    [javac] Compiling 153 source files to 
/home/alan/daily_build/production/classes/test-src
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/test-src/metadyne/connection/IMAP4TestSuite.java
 in 68 ms]

    Removed lines of output.......

    [javac] [parsed 
/home/alan/daily_build/source/metadyne/test-src/metanix/connection/ClientConnectionTestSuite.java
 in 8 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/test-src/metanix/connection/ConnectionBeanFactoryTest.java
 in 3 ms]
    [javac] [parsed 
/home/alan/daily_build/source/metadyne/test-src/metanix/connection/GenericStreamHandlerFactoryTestSuite.java
 in 16 ms]

    Removed lines of output.......

    [javac] [checking class metadyne.test.framework.GetTest. 1]
    [javac] [loaded 
/home/alan/daily_build/production/classes/src/metanix/connection/ConnectionBeanFactory.class
 in 2 ms]
    [javac] [checking class metadyne.test.framework.GetTest. Command]

    Removed lines of output.......

    [javac] [wrote 
/home/alan/daily_build/production/classes/test-src/metanix/connection/ClientConnectionTestSuite$MutableBoolean.class]
    [javac] [checking class metanix.connection.ConnectionBeanFactoryTest]
    [javac] [checking class metanix.connection.GenericStreamHandlerFactoryTestSuite]

    Removed lines of output.......

    [javac] [wrote 
/home/alan/daily_build/production/classes/test-src/metanix/content/AllTests.class]
    [javac] [checking class metanix.content.adapters.swing.ImageAdapterTest]
    [javac] [checking class metanix.content.adapters.swing.ImageAdapterTest. TestFrame]
    [javac] 
/home/alan/daily_build/source/metadyne/test-src/metanix/connection/ConnectionBeanFactoryTest.java:95:
 Class metanix.connection.ConnectionBeanFactory. ConnectionBeanFactoryImpl not found 
in void testGetInstance().
    [javac]             assertNotNull( "Instance should be valid", 
ConnectionBeanFactory.getInstance() );
    [javac]                          ^
    [javac] [checking class metanix.content.adapters.swing.ImageAdapterTest]



    [javac] Note: 5 files use or override a deprecated API.  Recompile with 
"-deprecation" for details.
    [javac] 1 error, 1 warning
    [javac] [done in 29956 ms]

BUILD FAILED

/home/alan/daily_build/build.xml:96: Compile failed, messages should have been 
provided.

Total time: 3 minutes 4 seconds
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

Reply via email to