axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Slominski <as...@cs.indiana.edu>
Subject [wsif] building tests without EJB ...
Date Wed, 04 Dec 2002 06:48:53 GMT
hi,

even though we have in build.xml for tests:

  <exclude name="shop/**/*.java" unless="ejb.present"/>

i was getting this compiler error

    [javac] C:\Forge\xml-axis-wsif\java\test\shop\ShoppingCart.java:63: 
Interface javax.ejb.EJBObjec
t of interface shop.ShoppingCart not found.
    [javac] public interface ShoppingCart extends javax.ejb.EJBObject {
    [javac]                                       ^
    [javac] 1 error, 1 warning

after some searching it turned out that WSIFTestRunner is referencing
directly ShoppingCartTest and javac compiler *will* find dependent
java source file for ShoppingCartTest even though it was explicitly
excluded ...

i have fixed WSIFTestRunner to remove this dependancy by using
Class.forName().

alek

-- 
The ancestor of every action is a thought. - Ralph Waldo Emerson 



Mime
View raw message