In order to dump the *schema* (i guess that's what you are trying to do) you
should use target "project-jdbc". The name is not very descriptive but
that's what it does. The "project-datadump" target dump the *data*, not the
schema.
also if you are using latest dev torque project-jdbc should be fine, but
AFAIR it still has not been fixed in 2.x branch (not sure about this).
fedor.
> -----Original Message-----
> From: Zhigang Wang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 7:21 PM
> To: [EMAIL PROTECTED]
> Subject: The project-datadump target
>
>
> Hi, folks,
> I am new to torque. I tried to use project-datadump
> target in the build.xml to dump schema of my database
> into an XML file. But I could not. for
> <target name="project-datadump"
> depends="init-tasks">
>
> <echo
> message="+-----------------------------------------------+"/>
> <echo message="|
> |"/>
> <echo message="| Dumping the data from database
> into XML |"/>
> <echo message="| Woo hoo!
> |"/>
> <echo message="|
> |"/>
> <echo
> message="+-----------------------------------------------+"/>
> <echo message=" taking build.properties from:
> ${build.properties}"/>
>
>
> <torque-datadump
> contextProperties="${build.properties}"
> controlTemplate="${DataDumpControlTemplate}"
>
> outputDirectory="${torque.home}/${outputDirectory}"
> templatePath="${templatePath}"
>
> outputFile="report.${project}.datadump.generation"
>
> xmlFile="${torque.home}/${schemaDirectory}/${project}-schema.xml"
> databaseName="${databaseName}"
> databaseUrl="${databaseUrl}"
> databaseDriver="${databaseDriver}"
> databaseUser="${databaseUser}"
> databasePassword="${databasePassword}"
> />
>
> </target>
> What is the purpose of:
>
> xmlFile="${torque.home}/${schemaDirectory}/${project}-schema.xml"
>
> The sample project-schema.xml contains definition for
> database schema. If I don't specify this file, I will
> fail. If I provide this file, what infomation I should
> put there? I don't think I should put database schema
> information there. If I can put these information into
> this XML, I have done what I want to do:)
> Any suggestion? I found Jason Kary has already
> asked this questions days ago. But I can not find any
> direct reply. Can somebody post a page of instructions
> for how to do that?
> Thanks a lot,
> zhigang,
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with
> Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> ---------------------------------------------------------------------
> 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]