SqlMap validation
-----------------

         Key: IBATISNET-81
         URL: http://issues.apache.org/jira/browse/IBATISNET-81
     Project: iBatis for .NET
        Type: Bug
    Versions: DataMapper 1.2.1    
    Reporter: Roelof Blom
 Assigned to: Gilles Bayon 
    Priority: Minor


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"/>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to