Peter,

Fixed this....

ClassLoader cLoader = new AntClassLoader(getProject(), mClasspath);
interfacesToExpose[i] = cLoader.loadClass(cn);


insteadof

           interfacesToExpose[i] = Class.forName(cn);


- Paul

Peter ,

Try this.

cd jakarta-avalon-apps/db
ant dist
unzip -U dist/AvalonDB-0.3.zip
cd avalon-db-0.3
ant dist

It will fail - so this needs to be fixed up.

OK then only problems is one that I have known about for a while :

   <altrmiproxies genname="AvalonDB" srcgendir="build/genjava"
       interfaces="org.apache.avalon.db.services.DatabaseManager"
       classgendir="build/genclasses">
     <classpath>
       <pathelement location="lib/commons-altrmi-client-interfaces.jar"/>
       <pathelement location="lib/commons-altrmi-client-impl.jar"/>
       <pathelement location="lib/commons-altrmi-common.jar"/>
       <pathelement location="lib/commons-altrmi-generator.jar"/>
       <pathelement path="${build.classes}"/>
     </classpath>      </altrmiproxies>

Fails because if cannot see the classes put in ${build.classes}by a previous build step. If you run it a second time it works - though that is not a solution. My question to you (as an Ant expert) is : How do I make an ant task that can process class files build in a depended on compile stage. I could have an attribute called interfacesdir ( interfacesdir="${build.classes}" ) and that would work, but would it be the right way?

- Paul


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>








--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to