How to apply torque on 'ready made' source code
Hi all,
I run torque3.1 successfully based on tutorial.My task now is I need to generate Baseclass(I realize that the source code prompt errors regarding on unavailability of super class which are Basexxx.java ) from ready made source code .The source code is complete with torque3.1.jar ,schema but no build-torque.xml and build.properties(the ex-developer used torque on this source code but I cannot find any file of build.properties and build-torque.properties). There are only
project.properties,prod.properties,staging.properties,script.sh .
Example of project.properties
### Project Settings
#Used for the jar file or other files names
#NOTE: must be one word, no special characters as this is to be a file name
project.codename=cse
#Project title, or Code Name
specification.title=XXXEnter the Project brief Description
#Project Description, used in web.xml, web containers use it their gui's...
project.description=XXXEnter the Project brief Description
client.codename=CBB
#Used in the java package name - com.@vendor.package@.@client.packageName@.@project.codename@.whatever.....
client.packageName=tatau
### Output Settings
output.dir=/tmp
#This would be the Main Class for the outputted jar, not needed for web applications
output.jar.mainclass=
#This would be the Classpath for the outputted jar, not needed for web applications
output.jar.classpath=
### ClassPath
#here enter all the class files needed for the application
#compile.classpath.jar=a series of jar files must be comma seperated
compile.classpath.jars=torque-3.1.jar, j2ee.1.4.jar, commons-lang-2.1.jar, log4j-1.2.8.jar, stratum-1.0-b3.jar, village-2.0-dev-20021111.jar, commons-beanutils-1.6.1.jar, commons-dbcp-1.0-dev-20020806.jar,jasperreports-1.0.1-hacked.jar, itext-1.3.1.jar, commons-logging-1.0.3.jar, commons-configuration-1.0-dev.jar, commons-pool-1.2.jar, commons-collections-2.1.1.jar, commons-dbcp-1.2.1.jar, msbase.jar, mssqlserver.jar, msutil.jar, commons-digester-1.7.jar, velocity-1.4.jar, xml-apis-2.0.2.jar, joda-time-1.1.jar, poi-2.5.1-final-20040804.jar
#the directory all the required jar files required, reside in!
compile.libBaseDir=../../lib/
#where is the utils base path
utils.base=../../utils
webapp.runtimecomponent=true
project.webapp.usetorque=true
project.webapp.torque.version=3.1
database.manual.creation=true
example of prod.properties
db.name=CBBCSAPIDEV
main.torque.database.url=jdbc:microsoft:sqlserver://192.168.1.252:1433;DatabaseName=CBBCSAPIDEV;SelectMethod=cursor
main.torque.database.driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
main.torque.database.user=sa
main.torque.database.password=pwd
main.torque.database.host=192.168.1.252
main.torque.databaseType=mssql
loglevel=DEBUG
logfile=/home/unid/var/log/cse/cse.log
webloglevel=DEBUG
weblogfile=/home/unid/var/log/cse/cse-web.log
input.dir.path=/tmp/unid/BCB/cse/sample_files/
output.dir.path=/tmp/unid/BCB/cse/output/
cse-service-config=./WEB-INF/configuration/cse-service.properties
validator-config=./WEB-INF/configuration/validator.properties
cse.vm.path=./WEB-INF/classes/cse-response.vm
My question is can I use those file beside using build-torque.xml and build.properties ?How is it possible?