yes, the dtd is placed in that package.  I thought it was more
descriptive than just saying it was found in the classpath, while still
making it clear that it did not get loaded from an url.

john mcnally

Daniel Rall wrote:
> 
> Isn't this going to print out "Resolver : used database.dtd from
> org.apache.torque.engine.database.transform package"?  Is the DTD
> included in that package?  I thought it was found in the classpath.
> John, will you clarify things for me a bit?  Thanks.
> 
> [EMAIL PROTECTED] writes:
> 
> > jmcnally    01/10/01 14:46:11
> >
> >   Modified:    src/java/org/apache/torque/engine/database/transform
> >                         DTDResolver.java
> >   Log:
> >   give more informative message about where the dtd was found.
> >
> >   Revision  Changes    Path
> >   1.4       +5 -2      
>jakarta-turbine-torque/src/java/org/apache/torque/engine/database/transform/DTDResolver.java
> >
> >   Index: DTDResolver.java
> >   ===================================================================
> >   RCS file: 
>/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/engine/database/transform/DTDResolver.java,v
> >   retrieving revision 1.3
> >   retrieving revision 1.4
> >   diff -u -r1.3 -r1.4
> >   --- DTDResolver.java        2001/09/29 00:45:05     1.3
> >   +++ DTDResolver.java        2001/10/01 21:46:11     1.4
> >   @@ -68,7 +68,7 @@
> >     * Bug 4337703</a>
> >     *
> >     * @author <a href="mailto:[EMAIL PROTECTED]";>Martin Poeschl</a>
> >   - * @version $Id: DTDResolver.java,v 1.3 2001/09/29 00:45:05 dlr Exp $
> >   + * @version $Id: DTDResolver.java,v 1.4 2001/10/01 21:46:11 jmcnally Exp $
> >     */
> >    public class DTDResolver implements EntityResolver
> >    {
> >   @@ -111,7 +111,10 @@
> >        {
> >            if (databaseDTD != null && WEB_SITE_DTD.equals(systemId))
> >            {
> >   -            System.out.println("Resolver: used database.dtd");
> >   +            String pkg = getClass().getName()
> >   +                .substring(0, getClass().getName().lastIndexOf("."));
> >   +            System.out.println("Resolver: used database.dtd from " +
> >   +                 pkg + " package ");
> >                return databaseDTD;
> >            }
> >            else
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to