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), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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
>