On Mar 17, 2007, at 11:31 AM, Jeff Butler wrote:

I committed a fix for this in SVN a couple of weeks ago.  I'd appreciate it if you would build a the new version from SVN and test to make sure I got it right.

Sure! I downloaded the latest code from Subversion and ran "ant -lib ../devlib".
I'm working on a Mac and using Java 5 and Ant 1.7. I got the following.

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.tools.ant.types.resources.Resources.dieOnCircularReference()V

Do you think this is due to using Ant 1.7 instead of 1.6?

 Jeff Butler

 
On 3/17/07, Mark Volkmann <mark@ociweb.com> wrote:
I found the post at the bottom on dev@ibatis.apache.org. Has the problem with Abator using entities defined in a DOCTYPE been fixed? I'm guessing it hasn't because I can't get it to work. Here's what I want to do.

<!DOCTYPE abatorConfiguration
  PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN"
  <!ENTITY % entities SYSTEM "entities.dtd">
  %entities;
]>

 
<abatorConfiguration>
  ...
</abatorConfiguration>

 
The file entities.dtd defines XML entities that I use in XML to avoid repeating values such as the database connection URL across many XML configuration files in my application. Abator responds with "This is not an Abator Configuration File".


We might be able to use an entity reference to store these externally, but that brings up another problem I found with Abator that may have already been addressed in SVN, but the entity resolver throws an exception rather than returning null for entities it doesn't recognize, so you can't define your own entities in the DOCTYPE.