You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by Conor MacNeill <co...@cortexebusiness.com.au> on 2002/01/24 11:25:16 UTC
[Fwd: [GUMP] Build Failure - Mutant]
Sam,
Just like to discuss this build issue with you in a bit more detail as
it may represent a slight issue with Gump.
Firstly I can build mutant without problems. If you check it out I am
sure you will too. There is nothing additional required from the
environment. The problem here, I think, stems from a combination of the
way I have chosen to structure the mutant source tree, how the build
process puts the jars together and how Gump treats classpaths
Let me explain my motivation for the current source structure. One of my
goals for mutant is to establish a clear classloader hierarchy. I want
to ensure that the same class visibility is available during compilation
as it is during runtime. Therefore the jars built in one target are used
in the compilation of the next target. If the run time classloader
hierarchy is, for example,
init
common
antcore
cli
then I build init.jar first, use it when compiling common.jar, which in
turn is used in compiling antcore.jar, and so on. Classes in antcore.jar
can see all classes in common.jar and init.jar but cannot see the
classes in cli.jar. This ensures the same visibility of classes at
runtime and compile time. Failure to do this can lead to a situation
where compilation is successful but NoClassDefFound errors are thrown at
runtime, which is not good.
The reason this occurs under Gump is that Gump is not trusting. It
ignores the classpath provided by the build file in favour of its own
classpath. Gump, however doesn't have the necessarys jars in its
classpath because they have only just been built in the earlier stages
of the build.
So in the following build, the classes in antcore cannot see the classes
built in common even though the build file provides these in a compile
classpath.
Is there any way around this problem?
Thanks
Conor
-------- Original Message --------
Subject: [GUMP] Build Failure - Mutant
Date: 23 Jan 2002 13:18:51 -0000
From: Diane Holt <ho...@apache.org>
Reply-To: "Ant Developers List" <an...@jakarta.apache.org>
To: ant-dev@jakarta.apache.org
----------------------------------------------------
This email is autogenerated from the output from:
<http://jakarta.apache.org/builds/gump/2002-01-23/jakarta-ant-mutant.html>
----------------------------------------------------
Buildfile: build.xml
buildsetup:
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib
[copy] Copying 2 files to
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib
init:
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/init
[depend] Deleted 0 out of date files in 0 seconds
[javac] Compiling 5 source files to
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/init
[jar] DEPRECATED - The jarfile attribute is deprecated. Use
destfile attribute instead.
[jar] Building jar:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib/init.jar
common:
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/common
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib/common
[depend] Deleted 0 out of date files in 0 seconds
[javac] Compiling 15 source files to
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/common
[jar] DEPRECATED - The jarfile attribute is deprecated. Use
destfile attribute instead.
[jar] Building jar:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib/common/common.jar
antcore:
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/antcore
[mkdir] Created dir:
/home/rubys/jakarta/jakarta-ant/proposal/mutant/dist/lib/antcore
[depend] Deleted 0 out of date files in 0 seconds
[javac] Compiling 34 source files to
/home/rubys/jakarta/jakarta-ant/proposal/mutant/bin/antcore
[javac]
/home/rubys/jakarta/jakarta-ant/proposal/mutant/src/java/antcore/org/apache/ant/antcore/xml/ElementHandler.java:60:
cannot resolve symbol
[javac] symbol : class Location
[javac] location: package util
[javac] import org.apache.ant.common.util.Location;
[javac] ^
[javac]
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>