[ http://issues.apache.org/jira/browse/IBATISNET-81?page=all ]

Gilles Bayon updated IBATISNET-81:
----------------------------------

      Component: DataAccess
    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>&nbsp;
    <style>
    <!--
    .fieldLabelArea
    {
        width: 30%;
    }
    -->
    </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"
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
         
            
         
>

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



> SqlMap validation
> -----------------
>
>          Key: IBATISNET-81
>          URL: http://issues.apache.org/jira/browse/IBATISNET-81
>      Project: iBatis for .NET
>         Type: Bug
>   Components: DataAccess
>     Versions: DataMapper 1.2.1
>     Reporter: Roelof Blom
>     Assignee: Roberto Rabe
>     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"/>
> </textarea>
>                     </td>
>     </tr>
>     
>                     
>                 
>             
>                 
>                 
>                     
>                     
>                         
>                     
>                 
>             
>         
>         
>             
>     <tr><td colspan=2 bgcolor=ffffff>&nbsp;
>     <style>
>     <!--
>     .fieldLabelArea
>     {
>         width: 30%;
>     }
>     -->
>     </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"
>          
>          
>             
>          
>          
>             
>          
>          
>             
>          
>          
>             
>          
>          
>             
>          
>          
>             
>          
> >

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