Mike,
Just remove the MasterTestSuite from your IDEA compilation path. A lot of the classes under there are simple test classes without packages, so if you're dumping all your classes into a default build directory they'll stomp on each other. Or you can try to get IDEA set up so that it retains the directory structure for the test cases and puts the compiled classes in the same structure.
Building from Ant is really the way to go, though.
--Keith
Mike Wannamaker wrote:
I'm compiling from within IDEA, not using the ant tasks just through IDEA's compiler.
Information: 53 errors
Information: 100 warnings
Information: Compilation completed with 53 errors and 100 warnings
D:\Javadev\castor\src\tests\xml\MasterTestSuite\introspection\ByteArrays\Foo
.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\introspection\ComplexType-Di
rectAccess\Builder.java
Error: line (50) duplicate class: Builder
D:\Javadev\castor\src\tests\xml\MasterTestSuite\introspection\SimpleType-Dir
ectAccess\Builder.java
Error: line (50) duplicate class: Builder
D:\Javadev\castor\src\tests\xml\MasterTestSuite\introspection\SimpleType-Dir
ectAccess\Root.java
Error: line (51) duplicate class: Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\ByteArrays\Foo.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Class_inheritance\A.
java
Error: line (51) duplicate class: A
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Class_inheritance\B.
java
Error: line (51) duplicate class: B
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Class_inheritance\Bu
ilder.java
Error: line (57) cannot resolve symbol method setId (java.lang.String)
Error: line (58) cannot resolve symbol method setItem
(java.lang.String)
Error: line (59) cannot resolve symbol method setNumber (int)
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Get-Method\Set_Root.
java
Error: line (3) duplicate class: Set_Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Include\A.java
Error: line (51) duplicate class: A
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Include\B.java
Error: line (51) duplicate class: B
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Include\Builder.java
Error: line (47) duplicate class: Builder
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Maps\container\Root.
java
Error: line (4) duplicate class: Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Maps\custom\Root.jav
a
Error: line (4) duplicate class: Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\Maps\default\Root.ja
va
Error: line (4) duplicate class: Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\auto-complete\Bar.ja
va
Error: line (8) cannot resolve symbol method setType (java.lang.String)
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\auto-complete\Foo.ja
va
Error: line (2) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\constructor\Foo.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\container\A.java
Error: line (51) duplicate class: A
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\container\B.java
Error: line (50) duplicate class: B
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\container\Builder.ja
va
Error: line (47) duplicate class: Builder
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\dateTime\Foo.java
Error: line (4) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\listeners\B.java
Error: line (55) setChild(BaseClass) in BaseClass cannot be applied to
(C)
Error: line (59) inconvertible types
found : BaseClass
required: C
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\listeners\C.java
Error: line (50) duplicate class: C
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\location\Foo.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\location\same-names\
Foo.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\mapping\namespaces\Root.java
Error: line (54) duplicate class: Root
D:\Javadev\castor\src\tests\xml\MasterTestSuite\marshalling\xsi-type\org\acm
e\Foo.java
Error: line (4) duplicate class: org.acme.Foo
D:\Javadev\castor\src\tests\xml\MasterTestSuite\sourcegenerator\IDREFS\IDREF
SBuilder.java
Error: line (16) cannot resolve symbol class Element1
Error: line (16) cannot resolve symbol class Element1
Error: line (18) cannot resolve symbol class Element2
Error: line (18) cannot resolve symbol class Element2
Error: line (20) cannot resolve symbol class Element3
Error: line (20) cannot resolve symbol class Element3
Error: line (22) cannot resolve symbol class ElementRef
Error: line (22) cannot resolve symbol class ElementRef
D:\Javadev\castor\src\tests\xml\MasterTestSuite\sourcegenerator\PrimitivesTo
Wrappers\PrimitivesBuilder.java
Error: line (14) cannot resolve symbol class TestPrimitiveToWrapper
Error: line (14) cannot resolve symbol class TestPrimitiveToWrapper
D:\Javadev\castor\src\tests\xml\MasterTestSuite\sourcegenerator\PrimitivesWi
thoutFacetsTest\PrimitivesBuilder.java
Error: line (6) duplicate class: PrimitivesBuilder
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\Inheritance_Regr
ession1\A.java
Error: line (47) duplicate class: A
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\Inheritance_Regr
ession1\A_Builder.java
Error: line (58) cannot resolve symbol method setName
(java.lang.String)
Error: line (59) cannot resolve symbol method setB (C)
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\Inheritance_Regr
ession1\B.java
Error: line (46) duplicate class: B
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\Inheritance_Regr
ession1\C.java
Error: line (47) duplicate class: C
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\containers\primi
tive\Bar.java
Error: line (3) duplicate class: Bar
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\mapping\containers\primi
tive\Foo.java
Error: line (3) duplicate class: Foo
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\sourcegenerator\NMTOKENS
\NMTOKENS_Builder.java
Error: line (14) cannot resolve symbol class Test_NMTOKENS
Error: line (14) cannot resolve symbol class Test_NMTOKENS
D:\Javadev\castor\src\tests\xml\RegressionTestSuite\sourcegenerator\Restrict
ion\Restriction_Builder.java
Error: line (14) cannot resolve symbol class MyDerivedElement
Error: line (14) cannot resolve symbol class MyDerivedElement
--ekiM R&D Hummingbird Core Services 613.548.4355 x4535
-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 23, 2005 1:01 PM
To: [email protected]
Subject: Re: [castor-user] Trying to upgrade from 0.9.5.3 to 0.9.6?
On Wed, 23 Mar 2005 11:19:46 -0500, Mike Wannamaker <[EMAIL PROTECTED]> wrote:
I have it down and mostly compiling except it complains about duplicate classes when compiling the examples? Do you normally setup examples as separate module per example or do you just remove the example source from module?
Are you compiling inside of IDEA or on the command line? What errors are you getting? I just cvs updated and everything is building just fine.
Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' The Castor Project http://www.castor.org/
Apache Geronimo http://geronimo.apache.org/
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
