"tek1",

Patches are welcome, but can you please do the following:

1. Create unidiff patch files (cvs diff -u)
2. Create a patch issue in the appropriate module in Scarab
(http://scarab.werken.com/scarab/issues/) that describes the problem and
attach your patch file.  In this case the module would be "Torque > Source".

Thanks,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com

On 24/12/2002 12:09 PM, "tek1" <[EMAIL PROTECTED]> wrote:

> sorry for the repost.  forgot to include "[PATCH]" in the subject.
> 
> this is a repost from torque-users as the below would like to be submitted
> as a possible patch. thank you.
> 
> ----
> 
> 
> thanks for your reply jake.
> 
> actually, the database.dtd file is inside the torque-3.0.jar file, but the
> DTDResolver class was not picking it up for some reason.
> 
> so i took a look inside the
> org.apache.torque.engine.database.transform.DTDResolver class' source code
> and found the problem.
> 
> i'm not 100% sure if this is correct, but in the constructor, instead of
> using:
> 
>        InputStream dtdStream = getClass().getResourceAsStream("database.dtd");
> 
> i used:
> 
>        InputStream dtdStream =
> this.getClass().getClassLoader().getResourceAsStream("database.dtd");
> 
> with this change, it's able to pickup the database.dtd from the .jar, so it
> no longer accesses the internet.
> 
> if this looks like a viable patch, to whom do we submit the patch?
> 
> thanks.
> 
> 
> 
> 
> At 13:30 02/12/23 -0800, you wrote:
>> Sure, put it on your local disk and change the refernce from the actual
>> XML file that is referencing it.
>> 
>> tek1 wrote:
>> 
>>> is there a way to disable torque from accessing the internet to lookup
>>> the dtd upon every execution?
>>> 
>>> ant is displaying:
>>> 
>>>     Resolver: used http://jakarta.apache.org/turbine/dtd/database.dtd
>>> 
>>> everytime...
>>> 
>>> thanks.


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

Reply via email to