Hi,
I've been using the xdoclet replacecopy ant task fine with ant 1.5.1, but
just upgraded to 1.6.1 and it now throws a class cast exception :( That's
the only change I've made to create this problem - looks like something's
changed in the ant copy classes that's not implemented by the older xdoclet
task implementation?
Also, I recall some posts to this list ages ago about the replacecopy task
being broken in the 1.2 xdoclet release - i am in fact using the b2 version,
which probably doesn't help matters! So, using ant 1.5.1 my replace copy is
working using xdoclet-1.2b2.jar (size 151029), but does not using
xdoclet-1.2.jar (146278).
When i try and build (this is using the 1.2b2 jar) with ant 1.6.1, this is
the exception i get:
[replacecopy] Copying 1 file to D:\dev\blah\target\WEB-INF\conf
BUILD FAILED
java.lang.ClassCastException
at xdoclet.ant.ReplaceCopy.doFileOperations(ReplaceCopy.java:73)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:412)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
My taskdef definition:
<taskdef name="replacecopy"
classname="xdoclet.ant.ReplaceCopy"
classpathref="xdocletbeta.class.path"
/>
My classpathref definition:
<path id="xdocletbeta.class.path">
<fileset dir="${commons.lib.dir}">
<include name="commons-logging-1.0.3.jar"/>
</fileset>
<fileset dir="${xdoclet.lib.dir}">
<include name="**/*.jar"/>
<exclude name="xdoclet-1.2.jar"/>
</fileset>
</path>
And finally, the contents of ${xdoclet.lib.dir}:
146278 xdoclet-1.2.jar
151029 xdoclet-1.2b2.jar
192932 xdoclet-ejb-module-1.2.jar
34568 xdoclet-hibernate-module-1.2.jar
10671 xdoclet-java-module-1.2.jar
86976 xdoclet-jboss-module-1.2.jar
11829 xdoclet-jmx-module-1.2.jar
39772 xdoclet-web-module-1.2.jar
54838 xdoclet-xdoclet-module-1.2.jar
239175 xjavadoc-1.0.2.jar
I hope this is enough information to track this down - any ideas anyone?
Cheers,
Ben
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user