You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by le...@cyberbeach.net on 2005/02/10 23:30:59 UTC
ClassCastException using ConvertTask
Hello,
I am trying to upgrade my sql maps from 1.x to 2.0 using the ant
ConvertTask, but I keep getting ClassCastExceptions.
Here is my Ant config:
<taskdef name="convertSqlMaps"
classname="com.ibatis.db.sqlmap.upgrade.ConvertTask"
classpathref="ibatis-classpath"/>
<target name="convertMaps">
<convertSqlMaps todir="${build.dir}" overwrite="true"
verbose="true">
<fileset dir="${src.dir}/com/varis/smarttag/dao/ibatis/maps">
<include name="**/*.xml"/>
</fileset>
</convertSqlMaps>
</target>
And here is the only output from Ant:
Buildfile: C:\Workspace\SmartTag\build.xml
convertMaps:
[convertSqlMaps] Copying 12 files to C:\Workspace\SmartTag\build
BUILD FAILED: C:\Workspace\SmartTag\build.xml:333:
java.lang.ClassCastException
Total time: 1 second
Any ideas?
Steve
Re: ClassCastException using ConvertTask
Posted by Clinton Begin <cl...@gmail.com>.
Yeah, be sure to use the correct version of Ant -- 1.5.4.
Unfortunately the way that Ant is written, we can't really support
more than one version at a time.
Luckily this is a one time gig for you. :-)
Cheers,
Clinton
On Thu, 10 Feb 2005 17:30:59 -0500 (EST), leighler@cyberbeach.net
<le...@cyberbeach.net> wrote:
> Hello,
>
> I am trying to upgrade my sql maps from 1.x to 2.0 using the ant
> ConvertTask, but I keep getting ClassCastExceptions.
>
> Here is my Ant config:
>
> <taskdef name="convertSqlMaps"
> classname="com.ibatis.db.sqlmap.upgrade.ConvertTask"
> classpathref="ibatis-classpath"/>
>
> <target name="convertMaps">
> <convertSqlMaps todir="${build.dir}" overwrite="true"
> verbose="true">
> <fileset dir="${src.dir}/com/varis/smarttag/dao/ibatis/maps">
> <include name="**/*.xml"/>
> </fileset>
> </convertSqlMaps>
> </target>
>
> And here is the only output from Ant:
>
> Buildfile: C:\Workspace\SmartTag\build.xml
> convertMaps:
> [convertSqlMaps] Copying 12 files to C:\Workspace\SmartTag\build
> BUILD FAILED: C:\Workspace\SmartTag\build.xml:333:
> java.lang.ClassCastException
> Total time: 1 second
>
> Any ideas?
>
> Steve
>