db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/ojb-blank build.xml build.properties
Date Tue, 22 Jun 2004 19:10:50 GMT
tomdz       2004/06/22 12:10:50

  Modified:    src/ojb-blank build.xml build.properties
  Log:
  Fixed issue with ojb-blank and Hsqldb
  ojb-blank now works out-of-the-box with the tutorial1 classes and Hsqldb
  
  Revision  Changes    Path
  1.4       +1 -2      db-ojb/src/ojb-blank/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ojb-blank/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	19 Jun 2004 09:43:11 -0000	1.3
  +++ build.xml	22 Jun 2004 19:10:49 -0000	1.4
  @@ -92,6 +92,7 @@
   
               <ojbrepository destinationFile="${build.resource.dir}/repository_user.xml"/>
               <torqueschema databaseName="${databaseName}"
  +                          dtdUrl="http://db.apache.org/torque/dtd/database_3_0_1.dtd"
                             destinationFile="${build.resource.dir}/project-schema.xml"/>
           </ojbdoclet>
       </target>
  @@ -114,8 +115,6 @@
                     value="true"/>
           <property name="torque.database.driver"
                     value="${jdbcRuntimeDriver}"/>
  -        <property name="torque.database.buildUrl"
  -                  value="${urlProtocol}:${urlSubprotocol}:${urlDbalias}"/>
   
           <!-- We want Torque to also process the schema for OJB's internal tables.
                If you do not require them, put a comment around this copy task -->
  
  
  
  1.3       +10 -2     db-ojb/src/ojb-blank/build.properties
  
  Index: build.properties
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/ojb-blank/build.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.properties	17 Jun 2004 22:04:34 -0000	1.2
  +++ build.properties	22 Jun 2004 19:10:49 -0000	1.3
  @@ -48,8 +48,16 @@
   
   # This is a specific url that Torque uses for creating a database.
   # For several databases this is different from the url used to access the database
  -# For instance, MySQL requires an url that points to an *existing* database
  -torque.database.createUrl=${urlProtocol}:${urlSubprotocol}:${urlDbalias}
  +# For instance, MySQL requires an url that points to the host, but without a database name
  +#
  +# For Hsqldb we have to mangle the path so that we can invoke Torque in the base
  +# directory but the database is created in the ${build.resource.dir} folder
  +torque.database.createUrl=${urlProtocol}:${urlSubprotocol}:${build.resource.dir}${urlDbalias}
  +
  +# This specifies the url that Torque uses to access the existing database
  +#
  +# For Hsqldb we use the same url as for the createUrl above
  +torque.database.buildUrl=${urlProtocol}:${urlSubprotocol}:${build.resource.dir}${urlDbalias}
   
   
   # Set this to the name of the jar file you want produced from the jar target
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message