Sorry for the trouble with this guys. The converter hasn't been touched in 2 years, because most people switched that long ago.
That said, there are many people who simply used search and replace features, as the biggest change is the DTD and the element names (<result-map> becomes <resultMap> etc.).
The conversion tools and backward compatibility tools have also been removed from 2.2.0.
Cheers,
Clinton
On 8/16/06, Khanna, Vijay (GE, Corporate, consultant)
<[EMAIL PROTECTED]> wrote:
David,
How exactly are you doing this..? Can u give an example..
Thanks,
Vijay Khanna
-----Original Message-----
From: David Gagnon [mailto:[EMAIL PROTECTED] ]
Sent: Wednesday, August 16, 2006 10:27 AM
To: [email protected]
Subject: Re: Maps 1.x to 2.x ANT task fails..
For the XSL file I added the source zip in the command line directly.
Not in the Ant build file.
Regards
/David
> Hi David,
>
> Looks like you found a workaround at such a critical time. Let me try
> this..
>
> BTW, did it solve both the issues 1) ClassCast & 2)finding the xsl
> file..?
>
>
> Thanks,
> Vijay Khanna
>
> -----Original Message-----
> From: David Gagnon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 16, 2006 10:19 AM
> To: [email protected]
> Subject: Re: Maps 1.x to 2.x ANT task fails..
>
> Hi,
>
>
> Im doing the conversion right now .. I got this problem and solve it
> by using an older version of ANT., i.e.: 1.5.4
>
> My problem is that the task dont find the SqlMap.xsl even though it`s
> in the classpath....I you find an answer to this error let me know
>
> Best Regards
> /David
>
>
> Khanna, Vijay (GE, Corporate, consultant) wrote:
>
>> Hello I am trying to run the ANT task to convert sqlmaps from 1.x to
>> 2.x. But getting ClassCastException.
>>
>> OUTPUT
>> -------------
>> D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion>ant main
>> Buildfile: build.xml
>>
>> main:
>> [convertSqlMaps] Copying 1 file to C:\convertSqlMaps
>>
>> BUILD FAILED
>>
>>
> D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion\build.xml:
> 15
> :
>
>> java.lang.ClassCastException
>>
>> Total time: 0 seconds
>> D:\supportcentral\v2.2_fixes\Ibatis_migration\xmlconversion>
>>
>> BUILD.XML
>> -----------------
>> <project basedir="." default="main">
>>
>> <path id="lib.path">
>> <fileset dir="lib/ibatis">
>> <include name="**/*.jar"/>
>> </fileset>
>> </path>
>>
>>
>> <taskdef name="convertSqlMaps"
>> classname="com.ibatis.db.sqlmap.upgrade.ConvertTask"
>> classpathref="lib.path"/>
>>
>> <target name="main">
>> <convertSqlMaps todir="c:/convertSqlMaps" overwrite="true">
>> <fileset
>>
>>
> dir="D:/supportcentral/v2.2_fixes/Ibatis_migration/xmlconversion/sqlma
> p-
> 1x">
>
>> <include name="**/*.xml"/>
>> </fileset>
>> </convertSqlMaps>
>> </target>
>>
>> </project>
>>
>> Thanks,
>> *Vijay Khanna*
>>
>>
>
>
>
>
>
>
