Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
DataMapper 1.2.1
-
None
Description
When you build iBatis with NAnt and enable SqlMap validation iBatis throws an exception. It attempts to load SqlMapConfig.xsd and SqlMap.xsd from the assembly resource stream, and the current NAnt build script does not include those files as resources. The patch below fixes this. Furthermore, it alters the XML namespace of the NAnt build file see http://nant.sourceforge.net/faq.html#enable-intellisense
===================================================================
— IBatisNet.DataMapper.build (revision 190584)
+++ IBatisNet.DataMapper.build (working copy)
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<project name="IBatisNet.DataMapper" default="build">
+<project name="IBatisNet.DataMapper" default="build" xmlns="http://nant.sf.net/schemas/nant.xsd">
<!--
Required properties:
- build.dir - (path) root level to build to, assemblies will go in ${build.dir}/bin
@@ -19,6 +19,10 @@
<resources basedir="Resources">
<include name="*/" />
</resources>
+ <resources basedir="." prefix="IBatisNet.DataMapper.">
+ <include name="SqlMapConfig.xsd" />
+ <include name="SqlMap.xsd" />
+ </resources>
<references basedir="${build.dir}/bin">
<include name="*.dll"/>
<exclude name="${nant.project.name}.dll"/>
</textarea>
</td>
</tr>
<tr><td colspan=2 bgcolor=ffffff>
<style>
<!--
.fieldLabelArea
-->
</style>
</td></tr>
<tr><td colspan=2 bgcolor=f0f0f0>
<b>Comment</b>: (an optional comment describing this update)
</td></tr>
<tr
>
<td class="fieldLabelArea">
Update comment:
</td>
<td bgcolor="ffffff" nowrap class="fieldValueArea">
<textarea name="comment"
cols="70"
rows="4"
wrap="virtual"
style="width:90%"
accesskey="m"
>