[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Update on Ozone's library...]



On Mon, 26 Mar 2001, David Li wrote:
> >%_It seems that the dev list is like of quiet.

I did reply on your original post in the dev list. Here it is again:

----------------------
On Sat, 24 Mar 2001, David Li wrote:
> >%_Hi,
> 
>   Some of the library we used are newer than the default one in Ozone
> (0.6.1). The following is a list.
> 
> 1. Castor. We currently using Castor 0.9. The schema for OPP has been
> update.
> 
> org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd
> 
>   The schema need to be rewrite to latest schema
> http://www.w3.org/2000/10/XMLSchema.
> 
> 2. JUnit. We are using 3.5. A couple package path has to be change.
> 
>   org/ozoneDB/core/test/LockTest.java needs to be updated.
> 
> 3. Ant. We are using 1.3. One major change is that the multiple
> assignment to the same property will be ignored. Ozone's build depends
> on this a lot to construct variable. It needs updated as well.

Thanks for your help, David. I will take a look at your changes as soon as
possible.

Anyway, JUnit, Castor and Ant are just needed to build the ozone server. You
should never get in touch with them if you just program ozone clients. The only
problem could be the ojvm command to start ozone applications. This builds
the CLASSPATH so that the ozone libraries are inserted before the rest of the
CLASSPATH but it should be no problem to change this. Or did I miss something?

>   We have the update for building Ozone itself. However, this current
> fails in building the sample.
> 
> The first two are attached in this message. I will post the build.xml
> once the samples building problem is resolved.
> 
> Also, I'd like to suggest putting the version number of the included
> jars. It makes it easier to integrate.

Hmmm... I'm not sure. If we do so then we would have to add/delete each new
version of a library instead of just commit/update it. CVS would be unable to
build diffs then.


Falko
------------------------------


>%_X-Mozilla-Status2: 00000000
> Message-ID: <3ABC76F8.81FF8ED1@digitalsesame.com>
> Date: Sat, 24 Mar 2001 18:29:12 +0800
> From: David Li <david@digitalsesame.com>
> Organization: DigitalSesame
> X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-4CLE i686)
> X-Accept-Language: en
> MIME-Version: 1.0
> To: ozone-dev@ozone-db.org
> Subject: Update on Ozone's library...
> Content-Type: multipart/mixed;
>  boundary="------------85D06DAC00A57CFC4623E2D9"
> 
> This is a multi-part message in MIME format.
> --------------85D06DAC00A57CFC4623E2D9
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hi,
> 
>   Some of the library we used are newer than the default one in Ozone
> (0.6.1). The following is a list.
> 
> 1. Castor. We currently using Castor 0.9. The schema for OPP has been
> update.
> 
> org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd
> 
>   The schema need to be rewrite to latest schema
> http://www.w3.org/2000/10/XMLSchema.
> 
> 2. JUnit. We are using 3.5. A couple package path has to be change.
> 
>   org/ozoneDB/core/test/LockTest.java needs to be updated.
> 
> 3. Ant. We are using 1.3. One major change is that the multiple
> assignment to the same property will be ignored. Ozone's build depends
> on this a lot to construct variable. It needs updated as well.
> 
>   We have the update for building Ozone itself. However, this current
> fails in building the sample.
> 
> The first two are attached in this message. I will post the build.xml
> once the samples building problem is resolved.
> 
> Also, I'd like to suggest putting the version number of the included
> jars. It makes it easier to integrate.
> 
> Thanks.
> 
> David Li
> DigitalSesame
> --------------85D06DAC00A57CFC4623E2D9
> Content-Type: text/plain; charset=us-ascii;
>  name="OzoneClassDescriptor.xsd"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="OzoneClassDescriptor.xsd"
> 
> <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
> 
>     <xsd:element name="OzoneClassDescriptor">
>         <xsd:complexType>
> 	  <xsd:sequence>
>             <xsd:element ref="name" minOccurs="1" maxOccurs="1"/>
>             <xsd:element ref="description" minOccurs="0" maxOccurs="1"/>
>             <xsd:element ref="package" minOccurs="0" maxOccurs="1"/>
>             <xsd:element ref="superclass" minOccurs="0" maxOccurs="1"/>
>             <xsd:element ref="interface" minOccurs="0" maxOccurs="1000"/>
>             <xsd:element ref="constructors" minOccurs="1" maxOccurs="1"/>
>             <xsd:element ref="methods" minOccurs="1" maxOccurs="1"/>
> 	  </xsd:sequence>
>         </xsd:complexType>
>     </xsd:element>
> 
>     <xsd:element name="constructors">
>         <xsd:complexType>
> 	  <xsd:sequence>
>             <xsd:element ref="publicConstructor" minOccurs="1" maxOccurs="1000"/>
> 	  </xsd:sequence>
>         </xsd:complexType>
>     </xsd:element>
> 
>     <xsd:element name="methods">
>         <xsd:complexType>
> 	  <xsd:sequence>
>             <xsd:element ref="publicMethod" minOccurs="1" maxOccurs="1000"/>
> 	  </xsd:sequence>
>         </xsd:complexType>
>     </xsd:element>
>         
>     <xsd:element name="publicConstructor">
>         <xsd:complexType>
> 	  <xsd:sequence>
>             <xsd:element ref="description" minOccurs="0" maxOccurs="1"/>
>             <xsd:element ref="parameter" minOccurs="0" maxOccurs="1000"/>
> 	  </xsd:sequence>
>         </xsd:complexType>
>     </xsd:element>
>     
>     <xsd:element name="publicMethod">
>         <xsd:complexType>
> 	  <xsd:sequence>
>             <xsd:element ref="description" minOccurs="0" maxOccurs="1"/>
>             <xsd:element ref="name" minOccurs="1" maxOccurs="1"/>
>             <xsd:element ref="parameter" minOccurs="0" maxOccurs="1000"/>
>             <xsd:element ref="locklevel" minOccurs="1" maxOccurs="1"/>
> 	  </xsd:sequence>
>         </xsd:complexType>
>     </xsd:element>
> 
>     <xsd:element name="parameter" type="string"/>
> 
>     <xsd:element name="name" type="string"/>
> 
>     <xsd:element name="locklevel" type="string"/>
> 
>     <xsd:element name="description" type="string"/>
> 
>     <xsd:element name="package" type="string"/>
> 
>     <xsd:element name="superclass" type="string"/>
> 
>     <xsd:element name="interface" type="string"/>
> 
> </xsd:schema>
> 
> 
> --------------85D06DAC00A57CFC4623E2D9
> Content-Type: text/plain; charset=us-ascii;
>  name="LockTest.java"
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline;
>  filename="LockTest.java"
> 
> // You can redistribute this software and/or modify it under the terms of
> // the Ozone Core License version 1 published by ozone-db.org.
> //
> // The original code and portions created by SMB are
> // Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.
> //
> // $Id: LockTest.java,v 1.6 2000/10/28 16:55:18 daniela Exp $
> 
> package org.ozoneDB.core.test;
> 
> import java.io.*;
> import org.ozoneDB.*;
> import org.ozoneDB.core.*;
> import org.ozoneDB.tools.*;
> import junit.framework.*;
> 
> 
> /**
>  * @author <a href="/ozone-users/03-2001/http://www.softwarebuero.de/">SMB</a>
>  * @version $Revision: 1.6 $Date: 2000/10/28 16:55:18 $
>  */
> public class LockTest extends TestCase {
>     
>     protected LocalDatabase db;
>     
>     
>     public LockTest( String name ) {
>         super( name );
>     }
>     
>     
>     protected void setUp() {
>         try {
>             // System.out.println ("setUp(): ");
>             
>             new LocalDatabase().create( "/tmp/db" );
>             db = (LocalDatabase)ExternalDatabase.openDatabase( "ozonedb:local://" + "/tmp/db" );
>         } catch (Exception e) {
>             e.printStackTrace();
>             throw new RuntimeException( e.toString() );
>         } 
>     } 
>     
>     
>     protected void tearDown() {
>         try {
>             // System.out.println ("tearDown(): ");
>             db.close();
>         } catch (Exception e) {
>             e.printStackTrace();
>             throw new RuntimeException( e.toString() );
>         } 
>     } 
>     
>     
>     public void testExclusiveLock() throws Exception {
>         User owner = db.theEnv.userManager.userForName( db.userName );
>         Transaction ta1 = db.theEnv.transactionManager.newTransaction( owner );
>         Transaction ta2 = db.theEnv.transactionManager.newTransaction( owner );
>         Lock lock = new ExclusiveLock();
>     
>     //        assert (lock.tryAcquire (ta1, Lock.LEVEL_READ));
>     //        assert (lock.tryAcquire (ta1, Lock.LEVEL_READ));
>     //
>     //        assert (!lock.tryAcquire (ta2, Lock.LEVEL_READ));
>     } 
>     
>     
>     public void testSharedLock() {
>     } 
>     
>     
>     public void testMROWLock() {
>     } 
>     
>     
>     public static Test suite() {
>         TestSuite suite = new TestSuite();
>         
>         suite.addTest( new LockTest( "testExclusiveLock" ) );
>         suite.addTest( new LockTest( "testSharedLock" ) );
>         return suite;
>     } 
>     
>     
>     public static void main( String[] args ) {
>         junit.textui.TestRunner.run( LockTest.suite() );
>     } 
>     
> }
> 
> --------------85D06DAC00A57CFC4623E2D9--
> 
> 

-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com