List Info

Thread: AW: Properties files




AW: Properties files
user name
2007-05-21 08:23:25
Hi Neelima,

 

to use the generator with Torque-3.2 you need the
torque-generator-3.2.jar and
put it onto the torque-classpath where ever that is in your
system you have
it most likely defined inside your buid-torque.xml.

 

You can find there:

 

<path id="torque-classpath">

<fileset dir="${torque.lib.dir}">

  <include
name="**/commons-collections-3.2.jar" /> 

  <include
name="**/commons-configuration-1.4.jar" /> 

  <include name="**/commons-lang-2.3.jar" />


  <include name="**/jdbc-2.0.jar" /> 

  <include name="**/log4j-1.2.14.jar" /> 

  <include name="**/${torque.jar}" /> 

  <include name="**/velocity-1.5.jar" /> 

  <include name="**/*.jar" /> 

</fileset>

</path>

 

So put the generator into your torque lib directory, and add
the jar to this
element, and you should be fine.

 

Please see more information about torque on
http://db.apache.org/torque/releas
es/torque-3.2/releases/torque-3.2/generator/
index.html

Especially under Usage…

 

*snip*

To use the generator, download the tar.gz or zip binary
distribution of the
Torque generator from the Torque download page. Unpack it in
the root
directory of your project. This will create a directory
called torque-gen-3.2
in the root directory of your project. You also need to have
ant installed and
available in your path.

 

Change into the torque-gen-3.2 directory and edit the file
build.properties.
Look through the properties and modify them to fit your
specific set-up.
Afterwards, assuming you want to keep your schema files in
the src/schema
subdirectory of the project root directory, and generate
your java classes in
the target/java and the sql scripts in the target/sql
subdirectories of the
project root directory, add the following properties:

*snap*

 

Kind Regards

 

Juergen

 

Von: Neelima Yadla [mailto:Neelima.YadlaCBC-Companies.com] 
Gesendet: Montag, 21. Mai 2007 15:12
An: Juergen Hoffmann
Betreff: RE: Properties files

 

My build.xml file calles the build-torque.xml file so I
should not edit my
build.properties file. The problem Iam facing is in new
torque 3.2 they have
taken out task directory from org.apache.torque where all
the task classes are
there .  The following section is in my build-torque.xml
file, 

  <taskdef

    name="torque-data-model"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueDataModelTask&q
uot;/>

  <taskdef

    name="torque-data-dump"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueDataDumpTask&qu
ot;/>

  <taskdef

    name="torque-data-sql"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueDataSQLTask&quo
t;/>

  <taskdef

    name="torque-doc"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueDocumentationTa
sk"/>

  <taskdef

    name="torque-jdbc-transform"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueJDBCTransformTa
sk"/>

  <taskdef

    name="torque-package-to-path"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.PackageAsPathTask&quo
t;/>

  <taskdef

    name="torque-sql"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueSQLTask"/&
gt;

  <taskdef

    name="torque-sql-exec"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueSQLExec"/&
gt;

  <taskdef

    name="torque-sql-transform"

    classpathref="torque-classpath"

   
classname="org.apache.torque.task.TorqueSQLTransformTas
k"/>

 

 

This is the part where it is failing…..So I need help on
build-torque.xml
file.

 

Thanks,

  _____  

From: Juergen Hoffmann [mailto:hoffmannapache.org] 
Sent: Monday, May 21, 2007 8:51 AM
To: Neelima Yadla
Cc: 'Turbine Users List'
Subject: AW: Properties files

 

Hi Neelima,

 

please make sure, that you configure the necessary
Torque-Related Properties
within your build.properties File.

 

You can find the complete Listing of Properties and their
default values here:


http://db.apache.org/torque/releas
es/torque-3.3/generator/properties-reference
.html
<http://db.apache.org/torque/release
s/torque-3.3/generator/properties-referenc
e.html%20For%20Torque%203.3>  For Torque 3.3 

and here
http://db.apache.org/torque/releas
es/torque-3.2/releases/torque-3.2/generator/
properties-reference.html For Torque 3.2

 

 

Kind regards

 

Juergen

 

Von: Neelima Yadla [mailto:Neelima.YadlaCBC-Companies.com] 
Gesendet: Montag, 21. Mai 2007 14:14
An: hoffmannapache.org
Betreff: Properties files

 

 

Hi,

I have attached all the properties files I have in my
webapp. Please check it.

 

Thanks for your help,

Neelima

 


!EXCUBATOR:1,46518d13274272876018163!


!EXCUBATOR:1,46519ad8274275397314415!

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )