On 9/26/01 12:03 PM, "Fedor Karpelevitch" <[EMAIL PROTECTED]>
wrote:
>> -----Original Message-----
>> From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, September 26, 2001 8:34 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: TorqueData task
>>
>>
>> On 9/26/01 11:11 AM, "Fedor Karpelevitch"
>> <[EMAIL PROTECTED]>
>> wrote:
>>
>>> I just checked - it works (somewhat - see below).
>>> The sequence to get it working is quite simple:
>>>
>>> 1) deploy torque (ant dist)
>>> 2) go to torque install ( bin/torque/torque )
>>> 3) edit build.properties and put your jdbc driver to lib/
>>> 4) do 'ant project-jdbc'
>>> 5) rename schema/schema.xml to yourprojectname-schema.xml
>>> 6) do 'ant project-datadtd' (produces src/yourprojectname-data.dtd)
>>> 7) do 'ant project-datadump' (produces
>>> src/yourprojectname-default-all-data.xml)
>>> 8) copy src/yourprojectname-data.dtd to schema/ and
>>> src/yourprojectname-default-all-data.xml to
>> schema/yourprojectname-data.xml
>>> 9) do 'and project-datasql' (produces src/yourprojectname-data.sql)
>>
>> Do I need a dtd to simply insert data? All I want to do is
>> take an xml file
>> that describes initial permission settings and insert them into a raw
>> system.
>
> I would rather have the dtd, it very easy to generate - you only need the
> schema xml file for that. Is there any problem?
>
I'm not totally clear on this but do I need to generate a dtd for my
particular dataset? For inserting data could we not just have a standard
dtd? I'm just trying to get the procedure clear before I try it in the TDK.
I've solved the problem of inserting an arbitrary set of SQL files using the
<sql> task in the 1.5 ant sources. So the data inserting to populate the
security system is next :-)
The TDK will soon work for a real project that changes ;-)
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]