db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/samples tutorial1.bat repository_database.xml OJB.properties repository_internal.xml repository.xml repository.dtd repository_user.xml
Date Sun, 14 Nov 2004 21:39:51 GMT
brj         2004/11/14 13:39:51

  Modified:    .        Tag: OJB_1_0_RELEASE build.xml
               src/samples Tag: OJB_1_0_RELEASE repository_user.xml
  Added:       src/samples Tag: OJB_1_0_RELEASE tutorial1.bat
                        repository_database.xml OJB.properties
                        repository_internal.xml repository.xml
                        repository.dtd
  Log:
  new ant-target ojb-quickstart
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.144.2.2 +73 -2     db-ojb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/build.xml,v
  retrieving revision 1.144.2.1
  retrieving revision 1.144.2.2
  diff -u -r1.144.2.1 -r1.144.2.2
  --- build.xml	11 Sep 2004 17:43:54 -0000	1.144.2.1
  +++ build.xml	14 Nov 2004 21:39:51 -0000	1.144.2.2
  @@ -605,6 +605,59 @@
       </target>
   
       <!-- ================================================================== -->
  +    <!-- Build quickstart-sample                                            -->
  +    <!-- ================================================================== -->
  +    <target name="ojb-quickstart" depends="jar-debug,compile-samples-without-jdo,prepare-testdb"
  +            description="Build the quickstart project">
  +        <property name="build.ojb-quickstart" value="${build.dir}/ojb-quickstart"/>
  +
  +        <delete dir="${build.ojb-quickstart}" verbose="false"/>
  +        <mkdir dir="${build.ojb-quickstart}"/>
  +        <mkdir dir="${build.ojb-quickstart}/lib"/>
  +        <mkdir dir="${build.ojb-quickstart}/classes"/>
  +
  +        <copy file="${dist}/${archive}.jar" todir="${build.ojb-quickstart}/lib"/>
  +        <copy todir="${build.ojb-quickstart}">
  +            <fileset dir="${src.samples}">
  +                <include name="OJB.properties" />
  +                <include name="repository.dtd" />
  +                <include name="repository.xml" />
  +                <include name="repository_database.xml" />
  +                <include name="repository_internal.xml" />
  +                <include name="repository_user.xml" />
  +                <include name="*.bat" />
  +            </fileset>
  +        </copy>
  +
  +        <!-- copy the sample database -->
  +        <copy todir="${build.ojb-quickstart}">
  +            <fileset dir="${build.test}">
  +                <include name="OJB.*" />
  +            </fileset>
  +        </copy>
  +
  +        <!-- copy the sample classes -->
  +        <copy todir="${build.ojb-quickstart}/classes">
  +            <fileset dir="${build.destsamples}">
  +                <include name="**/*.class" />
  +            </fileset>
  +        </copy>
  +
  +        <copy todir="${build.ojb-quickstart}/lib">
  +            <fileset dir="${lib}">
  +                <include name="antlr*.jar"/>
  +				<include name="commons*.jar"/>
  +                <include name="hsqldb*.jar"/>
  +                <include name="log4j*.jar"/>
  +                <include name="torque*.jar"/>
  +                <include name="velocity*.jar"/>
  +                <include name="xdoclet*.jar"/>
  +                <include name="xjavadoc*.jar"/>
  +            </fileset>
  +        </copy>
  +    </target>
  +
  +    <!-- ================================================================== -->
       <!-- Build the documentation                                            -->
       <!-- ================================================================== -->
       <target name="doc" depends="prepare,javadoc"
  @@ -1278,6 +1331,24 @@
       </target>
   
       <!-- ================================================================== -->
  +    <!-- Compiles the sample & tutorial classes                             -->
  +    <!-- ================================================================== -->
  +    <target name="compile-samples-without-jdo">
  +        <mkdir dir="${build.dir}"/>
  +        <mkdir dir="${build.srcsamples}"/>
  +        <mkdir dir="${build.destsamples}"/>
  +        <copy todir="${build.srcsamples}">
  +			<fileset dir="${src.samples}">
  +			  <exclude name="org/apache/ojb/tutorial5/**"/>
  +			</fileset>
  +        </copy>
  +        <javac srcdir="${build.srcsamples}" destdir="${build.destsamples}"
  +               debug="on" deprecation="${deprecation}">
  +            <classpath refid="compilation-classpath" />
  +        </javac>
  +    </target>
  +
  +    <!-- ================================================================== -->
       <!-- jdo enhancer - enhancing Product class   			 				-->
       <!-- ================================================================== -->
   	<target name="enhance-jdori" depends="compile-samples">
  @@ -1471,4 +1542,4 @@
       <!-- End of targets                                                     -->
       <!-- ================================================================== -->
   
  -</project>
  +</project>
  \ No newline at end of file
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +1 -57     db-ojb/src/samples/repository_user.xml
  
  Index: repository_user.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/samples/repository_user.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- repository_user.xml	22 Jun 2004 20:46:48 -0000	1.1
  +++ repository_user.xml	14 Nov 2004 21:39:51 -0000	1.1.2.1
  @@ -79,61 +79,5 @@
         />
      </class-descriptor>
   
  -<!-- Definitions for org.apache.ojb.tutorial5.Product -->
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorial5.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
   
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorials.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
  -
  -<!-- Mapping of User defined classes ends here -->
  +<!-- Mapping of User defined classes ends here -->
  \ No newline at end of file
  
  
  
  No                   revision
  
  Index: repository_user.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/samples/repository_user.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- repository_user.xml	22 Jun 2004 20:46:48 -0000	1.1
  +++ repository_user.xml	14 Nov 2004 21:39:51 -0000	1.1.2.1
  @@ -79,61 +79,5 @@
         />
      </class-descriptor>
   
  -<!-- Definitions for org.apache.ojb.tutorial5.Product -->
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorial5.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
   
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorials.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
  -
  -<!-- Mapping of User defined classes ends here -->
  +<!-- Mapping of User defined classes ends here -->
  \ No newline at end of file
  
  
  
  No                   revision
  
  Index: repository_user.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/samples/repository_user.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- repository_user.xml	22 Jun 2004 20:46:48 -0000	1.1
  +++ repository_user.xml	14 Nov 2004 21:39:51 -0000	1.1.2.1
  @@ -79,61 +79,5 @@
         />
      </class-descriptor>
   
  -<!-- Definitions for org.apache.ojb.tutorial5.Product -->
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorial5.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
   
  -   <class-descriptor
  -   	  class="org.apache.ojb.tutorials.Product"
  -   	  table="PRODUCT"
  -   >
  -      <field-descriptor
  -         name="id"
  -         column="ID"
  -         jdbc-type="INTEGER"
  -         primarykey="true"
  -         autoincrement="true"
  -      />
  -      <field-descriptor
  -         name="name"
  -         column="NAME"
  -         jdbc-type="VARCHAR"
  -      />
  -      <field-descriptor
  -         name="price"
  -         column="PRICE"
  -         jdbc-type="DOUBLE"
  -      />
  -      <field-descriptor
  -         name="stock"
  -         column="STOCK"
  -         jdbc-type="INTEGER"
  -      />
  -   </class-descriptor>
  -
  -<!-- Mapping of User defined classes ends here -->
  +<!-- Mapping of User defined classes ends here -->
  \ No newline at end of file
  
  
  
  1.1.2.1   +10 -0     db-ojb/src/samples/Attic/tutorial1.bat
  
  
  
  
  1.1.2.1   +49 -0     db-ojb/src/samples/Attic/repository_database.xml
  
  
  
  
  1.1.2.1   +457 -0    db-ojb/src/samples/Attic/OJB.properties
  
  
  
  
  1.1.2.1   +327 -0    db-ojb/src/samples/Attic/repository_internal.xml
  
  
  
  
  1.1.2.1   +58 -0     db-ojb/src/samples/Attic/repository.xml
  
  
  
  
  1.1.2.1   +950 -0    db-ojb/src/samples/Attic/repository.dtd
  
  
  
  

---------------------------------------------------------------------
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